1 2007-02-23 Bruno Haible <bruno@clisp.org>
3 Support for gcc-4.3 snapshots.
4 * autoconf/floatparam.c (check): Change argument types to
5 'volatile type*'. This defeats optimizations of gcc 4.3.0 snapshots.
7 2007-02-23 Bruno Haible <bruno@clisp.org>
9 Change "make alls" and "make allo" to recurse into subdirectories.
10 * src/Makefile.in (alls-local): Renamed from alls.
11 (allo-local): Renamed from allo.
12 (SUBDIRS_TARGET_ALL): Renamed from SUBDIRS_TARGET.
13 (alls, allo): New rules.
14 (SUBDIRS_TARGET_ALLS, SUBDIRS_TARGET_ALLO): New variables.
16 2007-02-22 Richard B. Kreckel <kreckel@ginac.de>
18 * include/cln/integer_io.h (read_integer): Make index args uintC.
19 * src/integer/input/cl_I_readparsed.cc: Likewise.
20 * include/cln/rational_io.h (read_rational): Likewise.
21 * src/rational/input/cl_RA_readparsed.cc: Likewise
22 * include/cln/float_io.h (read_float): Likewise.
23 * src/float/input/cl_F_readparsed.cc: Likewise.
24 * src/vector/output/cl_GV_number_aprint.cc: Vector lengths are uintC.
25 * src/vector/output/cl_SV_aprint.cc: Likewise.
26 * src/vector/output/cl_SV_number_aprint.cc: Likewise.
28 2007-02-15 Richard B. Kreckel <kreckel@ginac.de>
30 * m4/cc.m4 (CL_HAVE_ATTRIBUTE_FLATTEN): More robust definition allows...
31 * src/base/cl_maybe_inline.h (CL_FLATTEN): ...simplification here.
33 2007-02-10 Richard B. Kreckel <kreckel@ginac.de>
35 * autoconf/ltmain.sh: Update to libtool-1.5.26.
36 * autoconf/config.guess: Likewise.
37 * autoconf/config.sub: Likewise.
38 * m4/libtool.m4: Likewise.
40 2007-02-09 Alexei Sheplyakov <varg@theor.jinr.ru>
41 Richard B. Kreckel <kreckel@ginac.de>
43 Avoid compiler warning about ignored 'flatten' attribute directive:
44 * m4/cc.m4 (CL_ATTRIBUTE_FLATTEN): New macro...
45 * configure.ac: ...used here...
46 * include/cln/config.h.in: ...defining CL_HAVE_ATTRIBUTE_FLATTEN,...
47 * src/base/cl_maybe_inline.h: ...used to prevent a warning here.
49 2007-02-07 Richard B. Kreckel <kreckel@ginac.de>
51 * include/cln/integer.h: Enable modifying operators by default.
52 * include/cln/rational.h: Likewise.
53 * include/cln/sfloat.h: Likewise.
54 * include/cln/ffloat.h: Likewise.
55 * include/cln/dfloat.h: Likewise.
56 * include/cln/lfloat.h: Likewise.
57 * include/cln/float.h: Likewise.
58 * include/cln/real.h: Likewise.
59 * include/cln/complex.h: Likewise.
60 * doc/cln.texi: Document that.
62 2007-02-06 Richard B. Kreckel <kreckel@ginac.de>
64 Fix crash in output of huge numbers:
65 * src/integer/conv/cl_I_to_digits.cc: Make erglen uintC.
66 * src/integer/output/cl_I_print_string.cc: Make B_baselen uintC.
68 2007-02-04 Richard B. Kreckel <kreckel@ginac.de>
70 Fix cl_F output of more than 2^32 decimal digits:
71 * src/base/string/cl_sstring.cc (cl_sstring): make len uintC.
72 * src/base/string/cl_sstring.h: Likewise.
74 2007-01-23 Bruno Haible <bruno@clisp.org>
76 Allow 64-bit builds on MacOS X 10.5.
77 * m4/general.m4 (CL_CANONICAL_HOST_CPU): Test for x86_64 CPU if
78 "uname -m" returns "i386".
79 Reported by Ron Garret <ron@flownet.com>.
81 2007-01-20 Bruno Haible <bruno@clisp.org>
83 Avoid some gcc warnings.
84 * autoconf/floatparam.c (flipped_double): Use a union instead of a
86 * include/cln/number.h (union ffloatjanus, union dfloatjanus): Remove
88 (cl_float_to_FF_pointer, cl_double_to_DF_pointer): Change argument
90 (CL_DEFINE_FLOAT_CONSTRUCTOR, CL_DEFINE_DOUBLE_CONSTRUCTOR): Update.
91 * src/float/ffloat/cl_FF.h (cl_float_to_FF_pointer): Change argument
93 (cl_float_to_FF): Remove function.
94 * src/float/ffloat/conv/cl_FF_from_float.cc (FAST_FLOAT): Define.
95 (cl_float_to_FF_pointer): Change argument type.
96 * src/float/dfloat/cl_DF.h (cl_double_to_DF_pointer): Change argument
98 (cl_double_to_DF): Remove function.
99 * src/float/dfloat/conv/cl_DF_from_double.cc (FAST_DOUBLE): Define.
100 (cl_double_to_DF_pointer): Change argument type.
101 * src/float/lfloat/cl_LF_impl.h (LF_decode): Mark the mantlen_zuweisung
102 assignment as possibly unused.
103 * src/base/cl_low.h (mulu32): Mark the hi_zuweisung assignment as
105 * src/float/transcendental/cl_LF_zeta_int.cc (compute_zeta_cvz2):
106 Remove unused local variable.
108 2007-01-19 Richard B. Kreckel <kreckel@ginac.de>
110 * Version 1.2.0 released.
112 2007-01-19 Richard B. Kreckel <kreckel@ginac.de>
114 * doc/Makefile.in: texi2html -split_chapter doesn't generate
115 cln_toc.html any more.
116 * doc/cln.texi: Add table of contents in TeX output.
118 2007-01-18 Alexei Sheplyakov <varg@theor.jinr.ru>
120 Fix linking problems on some platforms caused by inline/non-inline
121 versions of same functions (obsoletes MAYBE_INLINE):
122 * src/base/cl_maybe_inline.h: New file.
123 * src/base/cl_inline2.h: New file.
124 * src/base/cl_inline.h: New file.
125 * src/base/string/cl_st_make0.h: New file.
126 * src/base/cl_macros.h: Pull in cl_maybe_inline.h.
127 * src/base/string/cl_st_concat1.cc: Use new CL_INLINE macros and the
128 new *_inline functions.
129 * src/base/string/cl_st_concat2.cc: Likewise.
130 * src/base/string/cl_st_concat3.cc: Likewise.
131 * src/complex/algebraic/cl_C_abs.cc: Likewise.
132 * src/complex/algebraic/cl_C_abs_aux.cc: Likewise.
133 * src/complex/algebraic/cl_C_signum.cc: Likewise.
134 * src/complex/algebraic/cl_DF_hypot.cc: Likewise.
135 * src/complex/algebraic/cl_FF_hypot.cc: Likewise.
136 * src/complex/algebraic/cl_LF_hypot.cc: Likewise.
137 * src/complex/algebraic/cl_SF_hypot.cc: Likewise.
138 * src/complex/transcendental/cl_C_acosh.cc: Likewise.
139 * src/complex/transcendental/cl_C_asinh_aux.cc: Likewise.
140 * src/complex/transcendental/cl_C_atanh_aux.cc: Likewise.
141 * src/float/dfloat/division/cl_DF_fceil.cc: Likewise.
142 * src/float/dfloat/elem/cl_DF_div.cc: Likewise.
143 * src/float/dfloat/elem/cl_DF_ffloor.cc: Likewise.
144 * src/float/dfloat/elem/cl_DF_minusp.cc: Likewise.
145 * src/float/dfloat/elem/cl_DF_mul.cc: Likewise.
146 * src/float/dfloat/elem/cl_DF_plusp.cc: Likewise.
147 * src/float/dfloat/elem/cl_DF_zerop.cc: Likewise.
148 * src/float/dfloat/misc/cl_DF_abs.cc: Likewise.
149 * src/float/dfloat/misc/cl_DF_digits.cc: Likewise.
150 * src/float/dfloat/misc/cl_DF_eqhashcode.cc: Likewise.
151 * src/float/dfloat/misc/cl_DF_exponent.cc: Likewise.
152 * src/float/dfloat/misc/cl_DF_idecode.cc: Likewise.
153 * src/float/dfloat/misc/cl_DF_precision.cc: Likewise.
154 * src/float/dfloat/misc/cl_DF_sign.cc: Likewise.
155 * src/float/dfloat/misc/cl_DF_signum.cc: Likewise.
156 * src/float/elem/cl_F_minusp.cc: Likewise.
157 * src/float/elem/cl_F_plusp.cc: Likewise.
158 * src/float/elem/cl_F_zerop.cc: Likewise.
159 * src/float/ffloat/division/cl_FF_fceil.cc: Likewise.
160 * src/float/ffloat/elem/cl_FF_div.cc: Likewise.
161 * src/float/ffloat/elem/cl_FF_ffloor.cc: Likewise.
162 * src/float/ffloat/elem/cl_FF_minusp.cc: Likewise.
163 * src/float/ffloat/elem/cl_FF_mul.cc: Likewise.
164 * src/float/ffloat/elem/cl_FF_plusp.cc: Likewise.
165 * src/float/ffloat/elem/cl_FF_zerop.cc: Likewise.
166 * src/float/ffloat/misc/cl_FF_abs.cc: Likewise.
167 * src/float/ffloat/misc/cl_FF_digits.cc: Likewise.
168 * src/float/ffloat/misc/cl_FF_eqhashcode.cc: Likewise.
169 * src/float/ffloat/misc/cl_FF_exponent.cc: Likewise.
170 * src/float/ffloat/misc/cl_FF_idecode.cc: Likewise.
171 * src/float/ffloat/misc/cl_FF_precision.cc: Likewise.
172 * src/float/ffloat/misc/cl_FF_sign.cc: Likewise.
173 * src/float/ffloat/misc/cl_FF_signum.cc: Likewise.
174 * src/float/lfloat/division/cl_LF_fceil.cc: Likewise.
175 * src/float/lfloat/elem/cl_LF_compare.cc: Likewise.
176 * src/float/lfloat/elem/cl_LF_ffloor.cc: Likewise.
177 * src/float/lfloat/elem/cl_LF_minusp.cc: Likewise.
178 * src/float/lfloat/elem/cl_LF_plusp.cc: Likewise.
179 * src/float/lfloat/elem/cl_LF_to_I.cc: Likewise.
180 * src/float/lfloat/elem/cl_LF_zerop.cc: Likewise.
181 * src/float/lfloat/misc/cl_LF_abs.cc: Likewise.
182 * src/float/lfloat/misc/cl_LF_digits.cc: Likewise.
183 * src/float/lfloat/misc/cl_LF_eqhashcode.cc: Likewise.
184 * src/float/lfloat/misc/cl_LF_exponent.cc: Likewise.
185 * src/float/lfloat/misc/cl_LF_idecode.cc: Likewise.
186 * src/float/lfloat/misc/cl_LF_precision.cc: Likewise.
187 * src/float/lfloat/misc/cl_LF_shortenrel.cc: Likewise.
188 * src/float/lfloat/misc/cl_LF_shortenwith.cc: Likewise.
189 * src/float/lfloat/misc/cl_LF_sign.cc: Likewise.
190 * src/float/lfloat/misc/cl_LF_signum.cc: Likewise.
191 * src/float/misc/cl_F_abs.cc: Likewise.
192 * src/float/misc/cl_F_digits.cc: Likewise.
193 * src/float/misc/cl_F_eqhashcode.cc: Likewise.
194 * src/float/misc/cl_F_exponent.cc: Likewise.
195 * src/float/misc/cl_F_idecode.cc: Likewise.
196 * src/float/misc/cl_F_precision.cc: Likewise.
197 * src/float/misc/cl_F_sign.cc: Likewise.
198 * src/float/misc/cl_F_signum.cc: Likewise.
199 * src/float/sfloat/division/cl_SF_fceil.cc: Likewise.
200 * src/float/sfloat/division/cl_SF_ffloor.cc: Likewise.
201 * src/float/sfloat/elem/cl_SF_compare.cc: Likewise.
202 * src/float/sfloat/elem/cl_SF_minus.cc: Likewise.
203 * src/float/sfloat/elem/cl_SF_minusp.cc: Likewise.
204 * src/float/sfloat/elem/cl_SF_plusp.cc: Likewise.
205 * src/float/sfloat/elem/cl_SF_uminus.cc: Likewise.
206 * src/float/sfloat/elem/cl_SF_zerop.cc: Likewise.
207 * src/float/sfloat/misc/cl_SF_abs.cc: Likewise.
208 * src/float/sfloat/misc/cl_SF_digits.cc: Likewise.
209 * src/float/sfloat/misc/cl_SF_eqhashcode.cc: Likewise.
210 * src/float/sfloat/misc/cl_SF_exponent.cc: Likewise.
211 * src/float/sfloat/misc/cl_SF_idecode.cc: Likewise.
212 * src/float/sfloat/misc/cl_SF_precision.cc: Likewise.
213 * src/float/sfloat/misc/cl_SF_sign.cc: Likewise.
214 * src/float/sfloat/misc/cl_SF_signum.cc: Likewise.
215 * src/float/transcendental/cl_F_atanhx.cc: Likewise.
216 * src/float/transcendental/cl_F_atanx.cc: Likewise.
217 * src/float/transcendental/cl_F_exp.cc: Likewise.
218 * src/float/transcendental/cl_F_expx.cc: Likewise.
219 * src/float/transcendental/cl_F_lnx.cc: Likewise.
220 * src/float/transcendental/cl_F_sinhx.cc: Likewise.
221 * src/float/transcendental/cl_F_sinx.cc: Likewise.
222 * src/float/transcendental/cl_F_tan.cc: Likewise.
223 * src/float/transcendental/cl_F_tanh.cc: Likewise.
224 * src/integer/conv/cl_I_from_DS.cc: Likewise.
225 * src/integer/conv/cl_I_from_NDS.cc: Likewise.
226 * src/integer/conv/cl_I_from_NUDS.cc: Likewise.
227 * src/integer/conv/cl_I_from_UDS.cc: Likewise.
228 * src/integer/misc/cl_I_eqhashcode.cc: Likewise.
229 * src/integer/misc/cl_I_signum.cc: Likewise.
230 * src/integer/ring/cl_I_ring.cc: Likewise.
231 * src/rational/elem/cl_RA_minusp.cc: Likewise.
232 * src/rational/misc/cl_RA_eqhashcode.cc: Likewise.
233 * src/rational/misc/cl_RA_signum.cc: Likewise.
234 * src/rational/ring/cl_RA_ring.cc: Likewise.
235 * src/real/algebraic/cl_RA_sqrt.cc: Likewise.
236 * src/real/algebraic/cl_R_sqrt.cc: Likewise.
237 * src/real/conv/cl_F_from_R_def.cc: Likewise.
238 * src/real/elem/cl_R_minusp.cc: Likewise.
239 * src/real/elem/cl_R_zerop.cc: Likewise.
240 * src/real/misc/cl_R_eqhashcode.cc: Likewise.
241 * src/real/misc/cl_R_signum.cc: Likewise.
242 * src/real/transcendental/cl_R_tan.cc: Likewise.
243 * src/real/transcendental/cl_R_tanh.cc: Likewise.
244 * src/base/string/cl_st_make0.cc: Remove obsolete MAYBE_INLINE.
245 * src/rational/misc/Makeflags: Help compiler include cl_I_eqhashcode.cc.
247 2008-01-15 Bruno Haible <bruno@clisp.org>
249 * doc/cln.texi: Renamed from doc/cln.tex. Add @node lines and @menu
251 * doc/addnodes.el: Remove file.
252 * doc/Makefile.in (${PACKAGE}.texi): Remove rule.
253 (EMACS): Remove variable.
254 (maintainer-clean): Don't remove ${PACKAGE}.texi.
255 Reported by Alexei Sheplyakov <varg@theor.jinr.ru>.
257 2008-01-11 Richard B. Kreckel <kreckel@ginac.de>
259 * include/cln/float.h (cos_sin_t, cosh_sinh_t): Add default ctor.
261 2008-01-11 Richard B. Kreckel <kreckel@ginac.de>
263 Make some functions more memory efficient:
264 * src/float/transcendental/cl_LF_tran.h (eval_rational_series): The
265 evaluation of streamed rational series may profit from shift-counting Q,
266 too. Introduce a template parameter to determine whether shift-counting
267 is to be used or not.
268 * src/float/transcendental/cl_LF_ratseries_pqb.cc: Introduce template
270 * src/float/transcendental/cl_LF_ratseries_pqa.cc: Likewise.
271 * src/float/transcendental/cl_LF_ratseries_pqab.cc: Likewise.
272 * src/float/transcendental/cl_LF_ratseries_qa.cc: Likewise.
273 * src/float/transcendental/cl_LF_ratseries_qab.cc: Likewise.
274 * src/float/transcendental/cl_LF_ratseries_q.cc: Likewise, added
275 overload for streamed expansion.
276 * src/float/transcendental/cl_LF_ratseries_qb.cc: Likewise.
277 * src/float/transcendental/cl_LF_ratseries_pq.cc: Introduce template
278 parameter, added overload for streamed expansion using shift-counts.
279 * src/float/transcendental/cl_LF_zeta3.cc: Adapt to above changes.
280 * src/float/transcendental/cl_LF_pi.cc: Likewise.
281 * src/float/transcendental/cl_LF_eulerconst.cc: Likewise.
282 * src/float/transcendental/cl_LF_catalanconst.cc: Likewise.
283 * src/float/transcendental/cl_LF_cossin_aux.cc: Likewise.
284 * src/float/transcendental/cl_LF_coshsinh_aux.cc: Likewise.
285 * src/float/transcendental/cl_LF_atanh_recip.cc: Use streamed series.
286 * src/float/transcendental/cl_LF_atan_recip.cc: Likewise.
287 * src/float/transcendental/cl_LF_exp1.cc: Likewise.
288 * src/float/transcendental/cl_LF_exp_aux.cc: Likewise.
289 * src/float/transcendental/cl_LF_ratseries.cc: Removed.
291 2008-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
292 Richard B. Kreckel <kreckel@ginac.de>
294 Cater to the fact that g++ 4.3 will use a different naming for
295 the global constructor suffix in shared and static objects.
296 * m4/c++-constructors.m4 (CL_GLOBAL_CONSTRUCTORS): Add test for
297 the global constructor suffix, define CL_GLOBAL_CONSTRUCTOR_SUFFIX_PIC
298 and CL_GLOBAL_CONSTRUCTOR_SUFFIX_NOPIC appropriately.
299 * include/cln/config.h.in: Provide templates to be filled in by
301 * include/cln/modules.h (CL_PROVIDE, CL_REQUIRE): Use
302 CL_GLOBAL_CONSTRUCTOR_SUFFIX_PIC, CL_GLOBAL_CONSTRUCTOR_SUFFIX_NOPIC.
304 2007-12-19 Richard B. Kreckel <kreckel@ginac.de>
306 * m4/general.m4 (CL_CANONICAL_HOST_CPU): Force host_cpu=rs6000 for
307 powerpc64 if userland is 32 bit.
309 2007-12-18 Richard B. Kreckel <kreckel@ginac.de>
311 * autoconf/ltmain.sh: Update to libtool-1.5.24.
312 * autoconf/config.guess: Likewise.
313 * autoconf/config.sub: Likewise.
314 * m4/libtool.m4: Likewise.
316 2007-12-18 Richard B. Kreckel <kreckel@ginac.de>
318 * src/float/transcendental/cl_F_lnx.cc: Make actuallen of type uintC.
319 * src/float/transcendental/cl_F_expx.cc: Likewise.
320 * src/float/transcendental/cl_F_sinhx.cc: Likewise.
321 * src/float/transcendental/cl_F_sinx.cc: Likewise.
323 2007-12-17 Richard B. Kreckel <kreckel@ginac.de>
325 Silly workaround for silly bug in gmp.h:
326 * m4/gmp.m4 (CL_GMP_SET_UINTD): Swap #include <gmp.h> and <stdio.h>.
328 2007-12-17 Richard B. Kreckel <kreckel@ginac.de>
330 * src/polynomial/elem/cl_UP_GF2.h (gf2_mul_table): define for sparc64.
332 2007-12-04 Richard B. Kreckel <kreckel@ginac.de>
334 * include/cln/types.h ([su]intE): 64-bit exponents for MIPS and RS6000.
336 2007-12-03 Richard B. Kreckel <kreckel@ginac.de>
338 * src/float/lfloat/cl_LF.h (cl_heap_lfloat): Change len type to uintC.
340 2007-11-28 Richard B. Kreckel <kreckel@ginac.de>
342 * include/cln/object.h: Don't redefine cl_word_alignment on sparc64.
343 * src/base/digitseq/cl_asm_sparc64_.cc: Declare use of global
344 register %g2 as scratch register within this file.
345 Reported by Paul Irofti <bulibuta@gmail.com> and Sven Verdoolaege
348 2007-11-03 Richard B. Kreckel <kreckel@ginac.de>
350 * src/base/digitseq/cl_asm_i386_.cc (compare_loop_up,
351 compare_loop_down): Fix empty ranges.
353 2007-10-12 Richard B. Kreckel <kreckel@ginac.de>
355 Fix compilation on CYGWIN:
356 * src/float/transcendental/cl_LF_zeta_int.cc: Avoid leading underscores
358 * src/float/transcendental/cl_LF_eulerconst.cc: Likewise.
359 Reported by Chris Bouchard <cbouchrd@uiuc.edu>.
361 2007-10-10 Richard B. Kreckel <kreckel@ginac.de>
363 * src/base/cl_low.h: Add missing linefeeds in SPARC 64 inline assembler.
364 * src/base/low/cl_low_div.cc (divu_6464_6464_): Fix a copy-paste typo.
365 Reported by Sven Verdoolaege <skimo@kotnet.org>.
367 2007-10-02 Richard B. Kreckel <kreckel@ginac.de>
369 On popular demand (Debian bug #286266, Ubuntu bug #128851):
370 * examples/pi.cc: Output no more than requested number of digits.
372 2007-10-01 Richard B. Kreckel <kreckel@ginac.de>
374 * autoconf/config.guess, autoconf/config.sub: updated from automake-1.9.
376 2007-09-19 Richard B. Kreckel <kreckel@ginac.de>
378 * doc/cln.tex: Put entire document in @dircategory Mathematics.
379 * doc/Makefile.in: texi2html -split_chapter suddenly uses subdirectory.
380 * Makefile.in: Don't install non-existing cln-config* and cln.m4.
382 2007-09-18 Richard B. Kreckel <kreckel@ginac.de>
384 * include/cln/modules.h (CL_JUMP_TO): Use a pc relative jump on m68k.
385 See <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388000>.
387 2007-09-16 Richard B. Kreckel <kreckel@ginac.de>
389 * */*: Convert encoding from ISO 8859-1 to UTF-8.
391 2007-09-13 Richard B. Kreckel <kreckel@ginac.de>
393 Truncated binary splitting for even more memory efficiency:
394 * src/float/transcendental/cl_LF_tran.h: Added new overloads. See below.
395 * src/float/transcendental/cl_LF_ratseries_stream_pq.cc: Removed and
396 moved everything to...
397 * src/float/transcendental/cl_LF_ratseries_pq.cc: ...here. Added an
398 overload for truncated expansion.
399 * src/float/transcendental/cl_LF_ratseries_stream_pqa.cc: Removed and
400 moved everything to...
401 * src/float/transcendental/cl_LF_ratseries_pqa.cc: ...here. Added an
402 overload for truncated expansion.
403 * src/float/transcendental/cl_LF_ratseries_stream_pqb.cc: Removed and
404 moved everything to...
405 * src/float/transcendental/cl_LF_ratseries_pqb.cc: ...here. Added an
406 overload for truncated expansion.
407 * src/float/transcendental/cl_LF_ratseries_stream_pqab.cc: Removed and
408 moved everything to...
409 * src/float/transcendental/cl_LF_ratseries_pqab.cc: ...here. Added an
410 overload for truncated expansion.
411 * src/float/transcendental/cl_LF_ratsumseries_pqcd_aux.cc: Added
412 overloads for streamed and truncated expansion.
413 * src/float/transcendental/cl_LF_ratsumseries_pqcd.cc: Likewise.
414 * src/float/transcendental/cl_LF_ratsumseries_stream_pqd_aux.cc: Removed
415 and moved everything to...
416 * src/float/transcendental/cl_LF_ratsumseries_pqd_aux.cc: ...here. Added
417 an overload for truncated expansion.
418 * src/float/transcendental/cl_LF_ratsumseries_stream_pqd.cc: Removed
419 and moved everything to...
420 * src/float/transcendental/cl_LF_ratsumseries_pqd.cc: ...here. Added an
421 overload for truncated expansion.
422 * src/float/transcendental/cl_LF_pi.cc: Use truncated series.
423 * src/float/transcendental/cl_LF_catalanconst.cc: Likewise.
424 * src/float/transcendental/cl_LF_eulerconst.cc: Likewise.
425 * src/float/transcendental/cl_LF_zeta_int.cc: Likewise.
426 * src/float/transcendental/cl_LF_zeta3.cc: Likewise.
428 2007-09-07 Richard B. Kreckel <kreckel@ginac.de>
430 More memory efficient Euler-Mascheroni constant:
431 * src/float/transcendental/cl_LF_tran.h (cl_pqd_series_stream): New.
432 * src/float/transcendental/cl_LF_ratsumseries_stream_pqd.cc: New file.
433 * src/float/transcendental/cl_LF_ratsumseries_stream_pqd_aux.cc: New
435 * src/float/transcendental/cl_LF_eulerconst.cc: Compute series
436 coefficients on demand, using a series stream object.
438 2007-08-02 Richard B. Kreckel <kreckel@ginac.de>
440 * src/base/digitseq/cl_DS_div.cc (cl_recip_suitable): uintC arguments.
442 2007-08-01 Richard B. Kreckel <kreckel@ginac.de>
444 * */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
445 C++ bool, true, and false.
447 2007-07-28 Richard B. Kreckel <kreckel@ginac.de>
449 Remove exception hooks in favor of real C++ exceptions:
450 * include/cln/exception.h: New file...
451 * include/cln/cln.h: ...included here...
452 * include/cln/rational.h: ...and here.
453 * include/cln/abort.h: Removed.
454 * include/cln/integer.h (ash_exception, exquo_exception): Add exception
456 * include/cln/float.h (floating_point_exception,
457 floating_point_nan_exception, floating_point_overflow_exception,
458 floating_point_underflow_exception): Likewise.
459 * include/cln/number_io.h (read_number_exception,
460 read_number_bad_syntax_exception, read_number_junk_exception,
461 read_number_eof_exception): Likewise.
462 * include/cln/object.h (CL_DEFINE_CONVERTER): Replace dynamic assertion
463 with a compile-time assertion.
464 * include/cln/GV.h: Replace nonreturning functions with exceptions.
465 * include/cln/modinteger.h: Likewise.
466 * include/cln/SV.h: Likewise.
467 * include/cln/ring.h: Likewise.
468 * include/cln/string.h: Likewise.
469 * include/cln/univpoly.h: Likewise.
470 * src/base/cl_abort.cc: Removed.
471 * src/base/cl_N_err_d0.cc: Removed.
472 * src/base/cl_d0_exception.cc: New file.
473 * src/base/cl_as_err.cc: Removed.
474 * src/base/cl_as_exception.cc: New file.
475 * src/base/cl_notreached.cc: Removed.
476 * src/base/cl_notreached_exception.cc: New file.
477 * src/base/input/cl_read_err_bad.cc: Removed.
478 * src/base/input/cl_read_bad_syntax_exception.cc: New file.
479 * src/base/input/cl_read_err_junk.cc: Removed.
480 * src/base/input/cl_read_junk_exception.cc: New file.
481 * src/base/input/cl_read_err_eof.cc: Removed.
482 * src/base/input/cl_read_eof_exception.cc: New file.
483 * src/base/cl_N.h (cl_as_error): Removed (see cln/exception.h).
484 * src/base/macros.h (NOTREACHED): Throw.
485 * src/base/cl_malloc.cc (xmalloc): Throw.
486 * src/base/digitseq/cl_2DS_div.cc: Throw.
487 * src/base/digitseq/cl_DS_div.cc: Throw.
488 * src/base/digitseq/cl_DS_mul.cc: Throw.
489 * src/base/digitseq/cl_DS_mul_fftc.h: Throw.
490 * src/base/digitseq/cl_DS_mul_fftcs.h: Throw.
491 * src/base/digitseq/cl_DS_mul_fftm.h: Throw.
492 * src/base/digitseq/cl_DS_mul_fftp.h: Throw.
493 * src/base/digitseq/cl_DS_mul_fftp3.h: Throw.
494 * src/base/digitseq/cl_DS_mul_fftp3m.h: Throw.
495 * src/base/digitseq/cl_DS_mul_fftr.h: Throw.
496 * src/base/digitseq/cl_DS_mul_nuss.h: Throw.
497 * src/base/digitseq/cl_DS_recipsqrt.cc: Throw.
498 * src/base/digitseq/cl_DS_sqrt.cc: Throw.
499 * src/base/hash/cl_hash.h: Throw.
500 * src/base/hash/cl_hash1.h: Throw.
501 * src/base/hash/cl_hash1weak.h: Throw.
502 * src/base/hash/cl_hash2.h: Throw.
503 * src/base/hash/cl_hash2weak.h: Throw.
504 * src/base/hash/cl_hashset.h: Throw.
505 * src/base/hash/cl_hashuniq.h: Throw.
506 * src/base/hash/cl_hashuniqweak.h: Throw.
507 * src/base/proplist/cl_pl_add.cc: Throw.
508 * src/base/ring/cl_no_ring.cc: Throw.
509 * src/base/string/cl_spushstring.h: Throw.
510 * src/base/symbol/cl_symbol.cc: Throw.
511 * src/integer/bitwise/cl_I_ash.h: Removed (see cln/integer.h.)
512 * src/integer/bitwise/cl_I_asherr.cc: Removed.
513 * src/integer/bitwise/cl_I_ash_exception.cc: New file.
514 * src/integer/division/cl_I_exquoerr.cc: Removed.
515 * src/integer/division/cl_I_exquo_exception.cc: New file.
516 * src/integer/cl_I.h: Throw.
517 * src/integer/division/cl_I_exquopos.cc: Throw.
518 * src/integer/bitwise/cl_I_logbitp_I.cc: Throw.
519 * src/integer/bitwise/cl_I_ash.cc: Throw.
520 * src/integer/bitwise/cl_I_ash_I.cc: Throw.
521 * src/integer/division/cl_I_exquo.cc: Throw.
522 * src/integer/gcd/cl_I_gcd_aux2.cc: Throw.
523 * src/integer/conv/cl_I_to_L.cc: Throw.
524 * src/integer/conv/cl_I_to_Q.cc: Throw.
525 * src/integer/conv/cl_I_to_UL.cc: Throw.
526 * src/integer/conv/cl_I_to_UQ.cc: Throw.
527 * src/integer/conv/cl_I_to_digits.cc: Throw.
528 * src/integer/elem/cl_I_div.cc: Throw.
529 * src/integer/algebraic/cl_I_sqrt.cc: Throw.
530 * src/integer/input/cl_I_read.cc: Throw.
531 * src/integer/input/cl_I_read_stream.cc: Throw.
532 * src/integer/misc/cl_I_as.cc: Throw.
533 * src/rational/elem/cl_RA_from_I_I_div.cc: Throw.
534 * src/rational/elem/cl_RA_recip.cc: Throw.
535 * src/rational/input/cl_RA_read.cc: Throw.
536 * src/rational/input/cl_RA_read_stream.cc: Throw.
537 * src/rational/input/cl_RA_readparsed.cc: Throw.
538 * src/rational/misc/cl_RA_as.cc: Throw.
539 * src/float/base/cl_F_err_nan.cc: Removed.
540 * src/float/base/cl_F_nan_exception.cc: New file.
541 * src/float/base/cl_F_err_un.cc: Removed.
542 * src/float/base/cl_F_underflow_exception.cc: New file.
543 * src/float/base/cl_F_err_ov.cc: Removed.
544 * src/float/base/cl_F_overflow_exception.cc: New file.
545 * src/float/cl_F.h (cl_error_floating_point_nan,
546 cl_error_floating_point_overflow, cl_error_floating_point_underflow):
547 Removed (see cln/float.h.)
548 * src/float/sfloat/cl_SF.h: Throw.
549 * src/float/sfloat/elem/cl_SF_div.cc: Throw.
550 * src/float/sfloat/elem/cl_SF_from_RA.cc: Throw.
551 * src/float/sfloat/elem/cl_SF_scale.cc: Throw.
552 * src/float/sfloat/elem/cl_SF_scale_I.cc: Throw.
553 * src/float/sfloat/misc/cl_SF_as.cc: Throw.
554 * src/float/ffloat/cl_FF.h: Throw.
555 * src/float/ffloat/conv/cl_FF_from_float.cc: Throw.
556 * src/float/ffloat/elem/cl_FF_div.cc: Throw.
557 * src/float/ffloat/elem/cl_FF_from_RA.cc: Throw.
558 * src/float/ffloat/elem/cl_FF_scale.cc: Throw.
559 * src/float/ffloat/elem/cl_FF_scale_I.cc: Throw.
560 * src/float/ffloat/misc/cl_FF_as.cc: Throw.
561 * src/float/dfloat/cl_DF.h: Throw.
562 * src/float/dfloat/conv/cl_DF_from_double.cc: Throw.
563 * src/float/dfloat/elem/cl_DF_div.cc: Throw.
564 * src/float/dfloat/elem/cl_DF_from_RA.cc: Throw.
565 * src/float/dfloat/elem/cl_DF_scale.cc: Throw.
566 * src/float/dfloat/elem/cl_DF_scale_I.cc: Throw.
567 * src/float/dfloat/misc/cl_DF_as.cc: Throw.
568 * src/float/lfloat/algebraic/cl_LF_sqrt.cc: Throw.
569 * src/float/lfloat/elem/cl_LF_1plus.cc: Throw.
570 * src/float/lfloat/elem/cl_LF_I_div.cc: Throw.
571 * src/float/lfloat/elem/cl_LF_I_mul.cc: Throw.
572 * src/float/lfloat/elem/cl_LF_div.cc: Throw.
573 * src/float/lfloat/elem/cl_LF_from_I.cc: Throw.
574 * src/float/lfloat/elem/cl_LF_mul.cc: Throw.
575 * src/float/lfloat/elem/cl_LF_scale.cc: Throw.
576 * src/float/lfloat/elem/cl_LF_scale_I.cc: Throw.
577 * src/float/lfloat/elem/cl_LF_square.cc: Throw.
578 * src/float/lfloat/misc/cl_LF_as.cc: Throw.
579 * src/float/lfloat/misc/cl_LF_shorten.cc: Throw.
580 * src/float/lfloat/misc/cl_LF_shortenrel.cc: Throw.
581 * src/float/lfloat/misc/cl_LF_shortenwith.cc: Throw.
582 * src/float/input/cl_F_read.cc: Throw.
583 * src/float/input/cl_F_read_stream.cc: Throw.
584 * src/float/misc/cl_F_as.cc: Throw.
585 * src/float/misc/cl_F_shortenrel.cc: Throw.
586 * src/float/transcendental/cl_LF_coshsinh_aux.cc: Throw.
587 * src/float/transcendental/cl_LF_cossin_aux.cc: Throw.
588 * src/float/transcendental/cl_LF_exp_aux.cc: Throw.
589 * src/float/transcendental/cl_LF_ratseries_a.cc: Throw.
590 * src/float/transcendental/cl_LF_ratseries_ab.cc: Throw.
591 * src/float/transcendental/cl_LF_ratseries_b.cc: Throw.
592 * src/float/transcendental/cl_LF_ratseries_p.cc: Throw.
593 * src/float/transcendental/cl_LF_ratseries_pa.cc: Throw.
594 * src/float/transcendental/cl_LF_ratseries_pab.cc: Throw.
595 * src/float/transcendental/cl_LF_ratseries_pb.cc: Throw.
596 * src/float/transcendental/cl_LF_ratseries_pq.cc: Throw.
597 * src/float/transcendental/cl_LF_ratseries_pqa.cc: Throw.
598 * src/float/transcendental/cl_LF_ratseries_pqab.cc: Throw.
599 * src/float/transcendental/cl_LF_ratseries_pqb.cc: Throw.
600 * src/float/transcendental/cl_LF_ratseries_q.cc: Throw.
601 * src/float/transcendental/cl_LF_ratseries_qa.cc: Throw.
602 * src/float/transcendental/cl_LF_ratseries_qab.cc: Throw.
603 * src/float/transcendental/cl_LF_ratseries_qb.cc: Throw.
604 * src/float/transcendental/cl_LF_ratseries_stream_pq.cc: Throw.
605 * src/float/transcendental/cl_LF_ratseries_stream_pqa.cc: Throw.
606 * src/float/transcendental/cl_LF_ratseries_stream_pqab.cc: Throw.
607 * src/float/transcendental/cl_LF_ratseries_stream_pqb.cc: Throw.
608 * src/float/transcendental/cl_LF_ratsumseries_pqcd_aux.cc: Throw.
609 * src/float/transcendental/cl_LF_ratsumseries_pqd.cc: Throw.
610 * src/float/transcendental/cl_LF_ratsumseries_pqd_aux.cc: Throw.
611 * src/float/transcendental/cl_LF_zeta_int.cc: Throw.
612 * src/real/elem/cl_R_div.cc: Throw.
613 * src/real/format-output/cl_fmt_cardinal.cc: Throw.
614 * src/real/format-output/cl_fmt_newroman.cc: Throw.
615 * src/real/format-output/cl_fmt_oldroman.cc: Throw.
616 * src/real/input/cl_R_read.cc: Throw.
617 * src/real/input/cl_R_read_stream.cc: Throw.
618 * src/real/misc/cl_R_as.cc: Throw.
619 * src/real/random/cl_R_random.cc: Throw.
620 * src/real/transcendental/cl_R_atan2.cc: Throw.
621 * src/real/transcendental/cl_R_log.cc: Throw.
622 * src/complex/input/cl_N_read.cc: Throw.
623 * src/complex/input/cl_N_read_stream.cc: Throw.
624 * src/complex/misc/cl_N_as.cc: Throw.
625 * src/complex/transcendental/cl_C_atanh_aux.cc: Throw.
626 * src/complex/transcendental/cl_C_expt_C.cc: Throw.
627 * src/complex/transcendental/cl_C_log.cc: Throw.
628 * src/complex/transcendental/cl_C_log2.cc: Throw.
629 * src/numtheory/cl_nt_cornacchia1.cc: Throw.
630 * src/numtheory/cl_nt_cornacchia4.cc: Throw.
631 * src/numtheory/cl_nt_isprobprime.cc: Throw.
632 * src/numtheory/cl_nt_jacobi.cc: Throw.
633 * src/numtheory/cl_nt_jacobi_low.cc: Throw.
634 * src/numtheory/cl_nt_sqrtmodp.cc: Throw.
635 * src/modinteger/cl_MI.cc: Throw.
636 * src/modinteger/cl_MI_int.h: Throw.
637 * src/modinteger/cl_MI_montgom.h: Throw.
638 * src/modinteger/cl_MI_pow2.h: Throw.
639 * src/modinteger/cl_MI_rshift.cc: Throw.
640 * src/modinteger/cl_MI_std.h: Throw.
641 * src/polynomial/elem/cl_UP_GF2.h: Throw.
642 * src/polynomial/elem/cl_UP_MI.h: Throw.
643 * src/polynomial/elem/cl_UP_gen.h: Throw.
644 * src/polynomial/elem/cl_UP_named.cc: Throw.
645 * src/polynomial/elem/cl_UP_no_ring.cc (uninitialized_error,
646 uninitialized_ring): Removed (see cln/ring.h.)
647 * src/polynomial/elem/cl_UP_number.h: Throw.
648 * src/polynomial/elem/cl_UP_unnamed.cc: Throw.
649 * src/vector/cl_GV_I.cc: Throw.
650 * src/vector/cl_GV_number.cc: Throw.
651 * tests/timediv2adic-compare.cc: Use default abort(), not cl_abort().
652 * tests/timeprint-compare.cc: Likewise.
653 * tests/timerecip2adic-compare.cc: Likewise.
654 * doc/cln.tex: Document the exception classes.
655 * examples/contfrac.cc: Use try/catch instead of setjmp/longjmp.
656 * INSTALL: undocument -fno-exceptions.
657 * README: Add exceptions to list of used C++ features.
659 2007-06-20 Richard B. Kreckel <kreckel@ginac.de>
661 * cln.spec.in (Source0): Package is bzip2-compressed.
662 Reported by Markus Grabner <grabner@icg.tugraz.at>.
664 2007-05-31 Richard B. Kreckel <kreckel@ginac.de>
666 * include/cln/integer.h (cl_I_to_E, cl_I_to_UE): New functions.
667 * src/float/transcendental/cl_LF_exp_aux.cc: Make lq argument an uintE.
668 * src/float/transcendental/cl_LF_cossin_aux.cc: Likewise.
669 * src/float/transcendental/cl_LF_coshsinh_aux.cc: Likewise.
670 * src/float/transcendental/cl_F_tran.h: Change declaration of lq.
671 * src/float/transcendental/cl_F_lnx.cc: Fix some exponent types.
672 * src/float/transcendental/cl_F_expx.cc: Likewise.
673 * src/float/transcendental/cl_F_sinh.cc: Likewise.
674 * src/float/transcendental/cl_F_atanx.cc: Likewise.
675 * src/float/transcendental/cl_F_coshsinh.cc: Likewise.
676 * src/float/transcendental/cl_LF_cossin.cc: Likewise.
677 * src/float/transcendental/cl_LF_coshsinh.cc: Likewise.
679 2007-04-09 Richard B. Kreckel <kreckel@ginac.de>
681 More memory efficient constants:
682 * src/float/transcendental/cl_LF_pi.cc (compute_pi_ramanujan_163_fast):
683 Compute series coefficients on demand, using a series stream object.
684 * src/float/transcendental/cl_LF_zeta3.cc (zeta3): Likewise.
685 * src/float/transcendental/cl_LF_catalanconst.cc
686 (compute_catalanconst_ramanujan_fast): Likewise.
687 (compute_catalanconst_lupas): New function.
688 (compute_catalanconst): Simplify, based on new benchmark.
690 2007-04-02 Alexei Sheplyakov <varg@theor.jinr.ru>
693 * cln.pc.in: list -lgmp in Libs.private instead of in Libs.
694 * doc/cln.tex: Undocument cln-config, properly document pkg-config.
695 * cln-config.1.in: Remove.
696 * cln-config.in: Remove.
698 * configure.ac: Don't output cln-config and cln-config.1.
700 2006-12-24 Bruno Haible <bruno@clisp.org>
702 Make autoconfiguration work with gcc-4.3 snapshots.
703 * autoconf/intparam.c (main1): Rename get_integer_bitsize to
704 get_unsigned_integer_bitsize. New macro get_signed_integer_bitsize.
706 2006-12-19 Bruno Haible <bruno@clisp.org>
708 * autoconf/intparam.c (main): Use 'return', not exit().
709 * autoconf/floatparam.c (main): Likewise.
710 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
712 2006-12-11 Richard B. Kreckel <kreckel@ginac.de>
714 Extend the exponent range from 32 bits to 64 bits on selected platforms.
715 * include/cln/number.h: Add signatures for operations with long long.
716 * include/cln/complex_class.h: Likewise.
717 * include/cln/real_class.h: Likewise.
718 * include/cln/real.h: Likewise.
719 * include/cln/rational_class.h: Likewise.
720 * include/cln/rational.h: Likewise.
721 * include/cln/integer_class.h: Likewise.
722 * include/cln/integer.h: Likewise.
723 * include/cln/float.h: Likewise.
724 * include/cln/lfloat.h: Likewise.
725 * include/cln/types.h (sintE and uintE): New types for exponents.
726 * include/cln/*float.h: Use the new types for exponents.
727 * include/cln/floatformat.h (float_format_t): Make underlying type
728 compatible with sintE.
729 * doc/cln.tex: Document changed float_exponent return value.
730 * src/float/cl_F.h: Likewise.
731 * src/float/ffloat/misc/cl_FF_exponent.cc: Likewise.
732 * src/float/input/cl_F_read.cc: Likewise.
733 * src/float/lfloat/cl_LF.h: Likewise.
734 * src/float/lfloat/cl_LF_impl.h: Likewise.
735 * src/float/lfloat/algebraic/cl_LF_sqrt.cc: Likewise.
736 * src/float/lfloat/elem/cl_LF_1plus.cc: Likewise.
737 * src/float/lfloat/elem/cl_LF_I_div.cc: Likewise.
738 * src/float/lfloat/elem/cl_LF_I_mul.cc: Likewise.
739 * src/float/lfloat/elem/cl_LF_compare.cc: Likewise.
740 * src/float/lfloat/elem/cl_LF_div.cc: Likewise.
741 * src/float/lfloat/elem/cl_LF_from_I.cc: Likewise.
742 * src/float/lfloat/elem/cl_LF_fround.cc: Likewise.
743 * src/float/lfloat/elem/cl_LF_ftrunc.cc: Likewise.
744 * src/float/lfloat/elem/cl_LF_futrunc.cc: Likewise.
745 * src/float/lfloat/elem/cl_LF_mul.cc: Likewise.
746 * src/float/lfloat/elem/cl_LF_scale.cc: Likewise.
747 * src/float/lfloat/elem/cl_LF_scale_I.cc: Likewise.
748 * src/float/lfloat/elem/cl_LF_square.cc: Likewise.
749 * src/float/lfloat/elem/cl_LF_to_I.cc: Likewise.
750 * src/float/lfloat/misc/cl_LF_decode.cc: Likewise.
751 * src/float/lfloat/misc/cl_LF_exponent.cc: Likewise.
752 * src/float/lfloat/misc/cl_LF_idecode.cc: Likewise.
753 * src/float/lfloat/misc/cl_LF_shortenrel.cc: Likewise.
754 * src/float/lfloat/misc/cl_LF_shortenwith.cc: Likewise.
755 * src/float/misc/cl_F_decode.cc: Likewise.
756 * src/float/misc/cl_F_exponent.cc: Likewise.
757 * src/float/misc/cl_F_shortenrel.cc: Likewise.
758 * src/float/misc/cl_float_format.cc: Likewise.
759 * src/float/output/cl_F_dprint.cc: Likewise.
760 * src/float/sfloat/misc/cl_SF_exponent.cc: Likewise.
761 * src/float/transcendental/cl_F_atanhx.cc: Likewise.
762 * src/float/transcendental/cl_F_atanx.cc: Likewise.
763 * src/float/transcendental/cl_F_cosh.cc: Likewise.
764 * src/float/transcendental/cl_F_expx.cc: Likewise.
765 * src/float/transcendental/cl_F_lnx.cc: Likewise.
766 * src/float/transcendental/cl_F_sinhx.cc: Likewise.
767 * src/float/transcendental/cl_F_sinx.cc: Likewise.
768 * src/float/transcendental/cl_LF_pi.cc: Likewise.
769 * src/integer/cl_I.h: Likewise.
770 * src/complex/algebraic/cl_LF_hypot.cc: Likewise.
771 * src/complex/elem/division/cl_C_LF_recip.cc: Likewise.
772 * src/float/dfloat/misc/cl_DF_exponent.cc: Likewise.
773 * src/integer/conv/cl_I_from_Q2.cc: Added.
774 * src/base/cl_low.h (isqrtC): New function, for 64 bit falls back to...
775 * src/base/low/cl_low_isqrt.cc (isqrt): ...this new implementation.
776 * src/base/cl_macros.h (bitc): Make sure 64 bit is used if required by
778 * examples/pi.cc: Support more than 646456614 decimal digits.
780 2006-11-02 Richard B. Kreckel <kreckel@ginac.de>
782 * src/base/digitseq/cl_DS.h: #undef DS, needed for i386-Solaris.
784 2006-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
786 * tests/Makefile.in (VPATH): Fix syntax error.
788 2006-09-14 Richard B. Kreckel <kreckel@ginac.de>
790 * examples/perfnum.cc: update to presumed 44th Mersenne prime.
792 2006-08-15 Richard B. Kreckel <kreckel@ginac.de>
794 * tests/Makefile.in: MinGW support for make check
795 (Patch by Sheplyakov Alexei <varg@theor.jinr.ru> to add ${EXEEXT}).
796 * Makefile.in: Convert from $(VAR) to ${VAR} syntax.
797 * benchmarks/Makefile.in: Likewise.
798 * doc/Makefile.in: Likewise.
799 * examples/Makefile.in: Likewise.
800 * src/Makefile.in: Likewise.
801 * tests/Makefile.in: Likewise.
803 2006-08-06 Richard B. Kreckel <kreckel@ginac.de>
805 * configure.ac: Re-enable shared lib on non-MinGW platforms, sigh.
807 2006-08-04 Sheplyakov Alexei <varg@theor.jinr.ru>
809 * configure.ac: Disable shared lib on MinGW.
811 2006-08-03 Sheplyakov Alexei <varg@theor.jinr.ru>
813 * m4/param.m4: Add support for MinGW.
814 * src/base/random/cl_random_from.cc: Fix for last patch.
816 2006-07-23 Sheplyakov Alexei <varg@theor.jinr.ru>
818 * src/base/random/cl_random_from.cc: Add support for MinGW.
820 2006-06-13 Richard B. Kreckel <kreckel@ginac.de>
822 * m4/general.m4 (CL_CANONICAL_HOST_CPU): Force host_cpu=i386 for x86_64
823 if userland is 32 bit.
824 * include/cln/config.h.in: Simplify __x86_64__ selection.
825 * src/base/digitseq/cl_asm_x86_64_.cc: Remove.
827 2006-06-09 Richard B. Kreckel <kreckel@ginac.de>
829 * src/base/digitseq/cl_DS.h (struct DS): Change len type to uintC.
831 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
833 * m4/gettimeofday.m4 (CL_GETTIMEOFDAY): Fix M4 quoting.
835 2006-05-20 Bruno Haible <bruno@clisp.org>
837 * src/base/random/cl_random_from.cc: Treat FreeBSD, NetBSD like other
840 2006-05-07 Richard B. Kreckel <kreckel@ginac.de>
842 * include/cln/modules.h (CL_JUMP_TO): Fix for Intel Mac.
844 2006-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
846 Prepare for autoconf-2.60.
847 * Makefile.in (datarootdir): New variable.
848 * src/Makefile.in (datarootdir): New variable.
849 * doc/Makefile.in (datarootdir): New variable.
851 2006-04-25 Bruno Haible <bruno@clisp.org>
852 Richard B. Kreckel <kreckel@ginac.de>
854 Make it theoretically possible to use bignums and long-floats with
855 more than 2^32 significant digits or bits.
856 * doc/cln.tex (logcount): Change return type to uintC.
857 (struct cl_byte): Change elements to uintC.
858 (integer_length, ord2, power2p): Change return type to uintC.
859 (scale_float): Change argument type to sintC.
860 (float_digits, float_precision): Change return type to uintC.
861 * examples/atan_recip.cc: Use uintC instead of uintL where appropriate.
862 * examples/atanh_recip.cc: Likewise.
863 * include/cln/GV.h: Likewise.
864 * include/cln/GV_complex.h: Likewise.
865 * include/cln/GV_integer.h: Likewise.
866 * include/cln/GV_modinteger.h: Likewise.
867 * include/cln/GV_number.h: Likewise.
868 * include/cln/GV_rational.h: Likewise.
869 * include/cln/GV_real.h: Likewise.
870 * include/cln/SV.h: Likewise.
871 * include/cln/SV_complex.h: Likewise.
872 * include/cln/SV_integer.h: Likewise.
873 * include/cln/SV_number.h: Likewise.
874 * include/cln/SV_rational.h: Likewise.
875 * include/cln/SV_real.h: Likewise.
876 * include/cln/SV_ringelt.h: Likewise.
877 * include/cln/dfloat.h: Likewise.
878 * include/cln/ffloat.h: Likewise.
879 * include/cln/float.h: Likewise.
880 * include/cln/integer.h: Likewise.
881 * include/cln/lfloat.h: Likewise.
882 * include/cln/modinteger.h: Likewise.
883 * include/cln/sfloat.h: Likewise.
884 * src/base/cl_low.h (integerlengthC): New macro.
885 * src/base/digitseq/cl_2DS_div.cc: Use uintC instead of uintL where
887 * src/base/digitseq/cl_2DS_recip.cc: Likewise.
888 * src/base/digitseq/cl_DS.h: Likewise.
889 * src/base/digitseq/cl_DS_mul.c: Likewise.
890 * src/base/digitseq/cl_DS_mul_fftc.h: Likewise.
891 * src/base/digitseq/cl_DS_mul_fftcs.h: Likewise.
892 * src/base/digitseq/cl_DS_mul_fftm.h: Likewise.
893 * src/base/digitseq/cl_DS_mul_fftp.h: Likewise.
894 * src/base/digitseq/cl_DS_mul_fftp3.h: Likewise.
895 * src/base/digitseq/cl_DS_mul_fftp3m.h: Likewise.
896 * src/base/digitseq/cl_DS_mul_fftr.h: Likewise.
897 * src/base/digitseq/cl_DS_mul_kara.h: Likewise.
898 * src/base/digitseq/cl_DS_mul_nuss.h: Likewise.
899 * src/base/digitseq/cl_DS_recip.cc: Likewise.
900 * src/base/digitseq/cl_DS_recipsqrt.cc: Likewise.
901 * src/base/digitseq/cl_DS_sqrt.cc: Likewise.
902 * src/base/digitseq/cl_DS_trandom.cc: Likewise.
903 * src/complex/input/cl_N_read.cc: Likewise.
904 * src/complex/transcendental/cl_C_asinh_aux.cc: Likewise.
905 * src/complex/transcendental/cl_C_expt_C.cc: Likewise.
906 * src/float/cl_F.h: Likewise.
907 * src/float/conv/cl_F_from_F_f.cc: Likewise.
908 * src/float/conv/cl_F_from_I_f.cc: Likewise.
909 * src/float/conv/cl_F_from_RA_f.cc: Likewise.
910 * src/float/dfloat/conv/cl_I_to_double.cc: Likewise.
911 * src/float/dfloat/conv/cl_RA_to_double.cc: Likewise.
912 * src/float/dfloat/elem/cl_DF_from_I.cc: Likewise.
913 * src/float/dfloat/elem/cl_DF_from_RA.cc: Likewise.
914 * src/float/dfloat/elem/cl_DF_scale.cc: Likewise.
915 * src/float/dfloat/misc/cl_DF_digits.cc: Likewise.
916 * src/float/dfloat/misc/cl_DF_precision.cc: Likewise.
917 * src/float/elem/cl_F_scale.cc: Likewise.
918 * src/float/ffloat/conv/cl_I_to_float.cc: Likewise.
919 * src/float/ffloat/conv/cl_RA_to_float.cc: Likewise.
920 * src/float/ffloat/elem/cl_FF_from_I.cc: Likewise.
921 * src/float/ffloat/elem/cl_FF_from_RA.cc: Likewise.
922 * src/float/ffloat/elem/cl_FF_scale.cc: Likewise.
923 * src/float/ffloat/misc/cl_FF_digits.cc: Likewise.
924 * src/float/ffloat/misc/cl_FF_precision.cc: Likewise.
925 * src/float/input/cl_F_read.cc: Likewise.
926 * src/float/lfloat/algebraic/cl_LF_sqrt.cc: Likewise.
927 * src/float/lfloat/elem/cl_LF_1plus.cc: Likewise.
928 * src/float/lfloat/elem/cl_LF_I_div.cc: Likewise.
929 * src/float/lfloat/elem/cl_LF_I_mul.cc: Likewise.
930 * src/float/lfloat/elem/cl_LF_div.cc: Likewise.
931 * src/float/lfloat/elem/cl_LF_from_I.cc: Likewise.
932 * src/float/lfloat/elem/cl_LF_from_RA.cc: Likewise.
933 * src/float/lfloat/elem/cl_LF_fround.cc: Likewise.
934 * src/float/lfloat/elem/cl_LF_ftrunc.cc: Likewise.
935 * src/float/lfloat/elem/cl_LF_futrunc.cc: Likewise.
936 * src/float/lfloat/elem/cl_LF_scale.cc: Likewise.
937 * src/float/lfloat/elem/cl_LF_to_I.cc: Likewise.
938 * src/float/lfloat/misc/cl_LF_digits.cc: Likewise.
939 * src/float/lfloat/misc/cl_LF_idecode.cc: Likewise.
940 * src/float/lfloat/misc/cl_LF_leninc.cc: Likewise.
941 * src/float/lfloat/misc/cl_LF_lenincx.cc: Likewise.
942 * src/float/lfloat/misc/cl_LF_precision.cc: Likewise.
943 * src/float/lfloat/misc/cl_LF_shortenrel.cc: Likewise.
944 * src/float/lfloat/misc/cl_LF_shortenwith.cc: Likewise.
945 * src/float/misc/cl_F_digits.cc: Likewise.
946 * src/float/misc/cl_F_epsneg.cc: Likewise.
947 * src/float/misc/cl_F_epspos.cc: Likewise.
948 * src/float/misc/cl_F_leastneg.cc: Likewise.
949 * src/float/misc/cl_F_leastpos.cc: Likewise.
950 * src/float/misc/cl_F_mostneg.cc: Likewise.
951 * src/float/misc/cl_F_mostpos.cc: Likewise.
952 * src/float/misc/cl_F_precision.cc: Likewise.
953 * src/float/misc/cl_F_rational.cc: Likewise.
954 * src/float/misc/cl_F_shortenrel.cc: Likewise.
955 * src/float/output/cl_F_dprint.cc: Likewise.
956 * src/float/random/cl_F_random.cc: Likewise.
957 * src/float/sfloat/elem/cl_SF_from_I.cc: Likewise.
958 * src/float/sfloat/elem/cl_SF_from_RA.cc: Likewise.
959 * src/float/sfloat/elem/cl_SF_scale.cc: Likewise.
960 * src/float/sfloat/misc/cl_SF_digits.cc: Likewise.
961 * src/float/sfloat/misc/cl_SF_precision.cc: Likewise.
962 * src/float/transcendental/cl_F_atanhx.cc: Likewise.
963 * src/float/transcendental/cl_F_atanx.cc: Likewise.
964 * src/float/transcendental/cl_F_catalanconst_f.cc: Likewise.
965 * src/float/transcendental/cl_F_cos.cc: Likewise.
966 * src/float/transcendental/cl_F_cosh.cc: Likewise.
967 * src/float/transcendental/cl_F_coshsinh.cc: Likewise.
968 * src/float/transcendental/cl_F_cossin.cc: Likewise.
969 * src/float/transcendental/cl_F_eulerconst_f.cc: Likewise.
970 * src/float/transcendental/cl_F_exp1_f.cc: Likewise.
971 * src/float/transcendental/cl_F_expx.cc: Likewise.
972 * src/float/transcendental/cl_F_ln10_f.cc: Likewise.
973 * src/float/transcendental/cl_F_ln2_f.cc: Likewise.
974 * src/float/transcendental/cl_F_lnx.cc: Likewise.
975 * src/float/transcendental/cl_F_pi_f.cc: Likewise.
976 * src/float/transcendental/cl_F_sin.cc: Likewise.
977 * src/float/transcendental/cl_F_sinh.cc: Likewise.
978 * src/float/transcendental/cl_F_sinhx.cc: Likewise.
979 * src/float/transcendental/cl_F_sinx.cc: Likewise.
980 * src/float/transcendental/cl_F_tran.h: Likewise.
981 * src/float/transcendental/cl_F_zeta_int_f.cc: Likewise.
982 * src/float/transcendental/cl_LF_atan_recip.cc: Likewise.
983 * src/float/transcendental/cl_LF_atanh_recip.cc: Likewise.
984 * src/float/transcendental/cl_LF_catalanconst.cc: Likewise.
985 * src/float/transcendental/cl_LF_coshsinh_aux.cc: Likewise.
986 * src/float/transcendental/cl_LF_cossin_aux.cc: Likewise.
987 * src/float/transcendental/cl_LF_eulerconst.cc: Likewise.
988 * src/float/transcendental/cl_LF_exp1.cc: Likewise.
989 * src/float/transcendental/cl_LF_exp_aux.cc: Likewise.
990 * src/float/transcendental/cl_LF_pi.cc: Likewise.
991 * src/float/transcendental/cl_LF_ratseries.cc: Likewise.
992 * src/float/transcendental/cl_LF_ratseries_.cc: Likewise.
993 * src/float/transcendental/cl_LF_ratseries_a.cc: Likewise.
994 * src/float/transcendental/cl_LF_ratseries_ab.cc: Likewise.
995 * src/float/transcendental/cl_LF_ratseries_b.cc: Likewise.
996 * src/float/transcendental/cl_LF_ratseries_p.cc: Likewise.
997 * src/float/transcendental/cl_LF_ratseries_pa.cc: Likewise.
998 * src/float/transcendental/cl_LF_ratseries_pab.cc: Likewise.
999 * src/float/transcendental/cl_LF_ratseries_pb.cc: Likewise.
1000 * src/float/transcendental/cl_LF_ratseries_pq.cc: Likewise.
1001 * src/float/transcendental/cl_LF_ratseries_pqa.cc: Likewise.
1002 * src/float/transcendental/cl_LF_ratseries_pqab.cc: Likewise.
1003 * src/float/transcendental/cl_LF_ratseries_pqb.cc: Likewise.
1004 * src/float/transcendental/cl_LF_ratseries_q.cc: Likewise.
1005 * src/float/transcendental/cl_LF_ratseries_qa.cc: Likewise.
1006 * src/float/transcendental/cl_LF_ratseries_qab.cc: Likewise.
1007 * src/float/transcendental/cl_LF_ratseries_qb.cc: Likewise.
1008 * src/float/transcendental/cl_LF_ratseries_stream_pq.cc: Likewise.
1009 * src/float/transcendental/cl_LF_ratseries_stream_pqa.cc: Likewise.
1010 * src/float/transcendental/cl_LF_ratseries_stream_pqab.cc: Likewise.
1011 * src/float/transcendental/cl_LF_ratseries_stream_pqb.cc: Likewise.
1012 * src/float/transcendental/cl_LF_ratsumseries_pqcd.cc: Likewise.
1013 * src/float/transcendental/cl_LF_ratsumseries_pqcd_aux.cc: Likewise.
1014 * src/float/transcendental/cl_LF_ratsumseries_pqd.cc: Likewise.
1015 * src/float/transcendental/cl_LF_ratsumseries_pqd_aux.cc: Likewise.
1016 * src/float/transcendental/cl_LF_tran.h: Likewise.
1017 * src/float/transcendental/cl_LF_zeta3.cc: Likewise.
1018 * src/float/transcendental/cl_LF_zeta_int.cc: Likewise.
1019 * src/integer/algebraic/cl_I_rootp_I.cc: Likewise.
1020 * src/integer/algebraic/cl_I_rootp_aux.cc: Likewise.
1021 * src/integer/bitwise/cl_I_ash.cc: Likewise.
1022 * src/integer/bitwise/cl_I_ash_I.cc: Likewise.
1023 * src/integer/bitwise/cl_I_byte.h: Likewise.
1024 * src/integer/bitwise/cl_I_fullbyte.cc: Likewise.
1025 * src/integer/bitwise/cl_I_ilength.cc: Likewise.
1026 * src/integer/bitwise/cl_I_ldb.cc: Likewise.
1027 * src/integer/bitwise/cl_I_ldbtest.cc: Likewise.
1028 * src/integer/bitwise/cl_I_ldbx.cc: Likewise.
1029 * src/integer/bitwise/cl_I_ldbxtest.cc: Likewise.
1030 * src/integer/bitwise/cl_I_logbitp.cc: Likewise.
1031 * src/integer/bitwise/cl_I_logbitp_I.cc: Likewise.
1032 * src/integer/bitwise/cl_I_logcount.cc: Likewise.
1033 * src/integer/bitwise/cl_I_mkf.cc: Likewise.
1034 * src/integer/bitwise/cl_I_mkfx.cc: Likewise.
1035 * src/integer/cl_I.h: Likewise.
1036 * src/integer/conv/cl_I_to_digits.cc: Likewise.
1037 * src/integer/conv/cl_I_digits_need.cc: Likewise.
1038 * src/integer/conv/cl_I_from_digits.cc: Likewise.
1039 * src/integer/gcd/cl_I_gcd.cc: Likewise.
1040 * src/integer/gcd/cl_I_xgcd.cc: Likewise.
1041 * src/integer/misc/cl_I_eqhashcode.cc: Likewise.
1042 * src/integer/misc/cl_I_ord2.cc: Likewise.
1043 * src/integer/misc/cl_I_power2p.cc: Likewise.
1044 * src/integer/output/cl_I_cached_power.h (cached_power_table): allow
1046 * src/integer/output/cl_I_decstring.cc: Use uintC instead of uintL
1048 * src/integer/output/cl_I_print.cc: Likewise.
1049 * src/integer/output/cl_I_print_string.cc: Likewise.
1050 * src/modinteger/cl_MI.cc: Likewise.
1051 * src/modinteger/cl_MI_lshift.cc: Likewise.
1052 * src/modinteger/cl_MI_montgom.h: Likewise.
1053 * src/modinteger/cl_MI_pow2.h: Likewise.
1054 * src/modinteger/cl_MI_pow2m1.h: Likewise.
1055 * src/modinteger/cl_MI_pow2p1.h: Likewise.
1056 * src/modinteger/cl_MI_rshift.cc: Likewise.
1057 * src/modinteger/cl_MI_std.h: Likewise.
1058 * src/numtheory/cl_IF_millerrabin.cc: Likewise.
1059 * src/numtheory/cl_nt_isprobprime.cc: Likewise.
1060 * src/numtheory/cl_nt_sqrtmodp.cc: Likewise.
1061 * src/polynomial/elem/cl_UP_GF2.h: Likewise.
1062 * src/real/conv/cl_F_from_R_f.cc: Likewise.
1063 * src/real/format-output/cl_fmt_floatstring.cc: Likewise.
1064 * src/real/input/cl_R_read.cc: Likewise.
1065 * src/vector/cl_GV_I.cc: Likewise.
1066 * src/vector/cl_GV_I_copy.cc: Likewise.
1067 * src/vector/cl_GV_number.cc: Likewise.
1068 * src/vector/cl_GV_number_copy.cc: Likewise.
1069 * src/vector/cl_SV_copy.cc: Likewise.
1070 * src/vector/cl_SV_number.cc: Likewise.
1071 * src/vector/cl_SV_ringelt.cc: Likewise.
1072 * tests/main.cc: Likewise.
1073 * tests/test_I_ilength.cc: Likewise.
1074 * tests/test_I_ord2.cc: Likewise.
1076 2006-04-19 Bruno Haible <bruno@clisp.org>
1078 Prepare for autoconf-2.60.
1079 * general.m4 (CL_CC_WORKS): Include <stdlib.h>, for exit() declaration.
1080 * longdouble.m4 (CL_LONGDOUBLE): Likewise.
1081 * longlong.m4 (CL_LONGLONG): Likewise.
1082 * times.m4 (CL_TIMES_CLOCK): Likewise.
1083 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1085 2005-12-04 Bruno Haible <bruno@clisp.org>
1087 * src/integer/conv/cl_I_to_digits.cc (I_to_digits_noshrink): Set
1088 erg->len at the end.
1090 2005-12-04 Bruno Haible <bruno@clisp.org>
1092 Extend the fixnum range from 32 bits to 61 bits on 64-bit platforms.
1093 * doc/cln.tex (gcd, jacobi): Take 'long' instead of 'int32' arguments.
1094 * include/cln/object.h (cl_value_shift): Define as 3, not 32, in the
1096 * include/cln/types.h (intVsize): New macro.
1097 (sintV, uintV): New types.
1098 * include/cln/integer.h (gcd): Take uintV arguments.
1099 * include/cln/numtheory.h (jacobi): Take sintV arguments.
1100 * src/complex/input/cl_N_read.cc (read_complex): Call FN_to_UV instead
1102 * src/complex/transcendental/cl_C_expt_C.cc: Likewise.
1103 * src/float/dfloat/elem/cl_DF_scale_I.cc: Use uintV instead of uintL
1104 * src/float/dfloat/elem/cl_DF_from_RA.cc: Don't assume values >= 2^53
1105 and < 2^55 are always bignums.
1107 * src/float/ffloat/conv/cl_RA_to_float.cc: Call FN_to_UV instead of
1109 * src/float/ffloat/elem/cl_FF_from_RA.cc: Likewise.
1110 * src/float/ffloat/elem/cl_FF_scale_I.cc: Call FN_to_V instead of
1112 * src/float/lfloat/elem/cl_LF_scale_I.cc: Likewise.
1113 * src/float/output/cl_F_dprint.cc: Likewise.
1114 * src/float/sfloat/elem/cl_SF_from_RA.cc: Call FN_to_UV instead of
1116 * src/float/sfloat/elem/cl_SF_scale_I.cc: Call FN_to_V instead of
1118 * src/integer/cl_I.h (FN_to_UV): Renamed from FN_to_UL, change return
1120 (FN_to_V): Renamed from FN_to_L, change return type.
1121 (FN_V_zerop): Renamed from FN_L_zerop.
1122 (FN_V_minusp): Renamed from FN_L_minusp.
1123 (cl_I_constructor_from_L2, cl_I_constructor_from_UL2): Define as an
1124 inline function on 64-bit platforms.
1125 (V_to_I, UV_to_I): New macros.
1126 (pFN_maxlength_digits_at): Return an uintV instead of an uint32.
1127 (set_pFN_maxlength_digits_at): Take an uintV instead of an uint32.
1128 * src/integer/algebraic/cl_I_sqrtp.cc: Call FN_to_UV instead of
1130 * src/integer/bitwise/cl_I_ash_I.cc: Call FN_to_V instead of FN_to_L.
1131 * src/integer/bitwise/cl_I_ilength.cc: Likewise.
1132 * src/integer/bitwise/cl_I_log_aux.cc: Likewise.
1133 * src/integer/bitwise/cl_I_logbitp_I.cc: Likewise.
1134 * src/integer/bitwise/cl_I_logcount.cc: Likewise.
1135 * src/integer/bitwise/cl_I_logtest.cc: Likewise.
1136 * src/integer/conv/cl_I_from_L2.cc: Don't produce code on 64-bit
1138 * src/integer/conv/cl_I_from_UL2.cc: Likewise.
1139 * src/integer/conv/cl_I_from_NDS.cc: Update.
1140 * src/integer/conv/cl_I_from_Q.cc: Remove cast to sint32.
1141 * src/integer/conv/cl_I_from_UQ.cc: Remove cast to uint32.
1142 * src/integer/conv/cl_I_to_L.cc: Check again fixnum that needs more
1144 * src/integer/conv/cl_I_to_Q.cc: Call FN_to_V instead of FN_to_L.
1145 * src/integer/conv/cl_I_to_UL.cc: Likewise.
1146 * src/integer/conv/cl_I_to_UQ.cc: Likewise.
1147 * src/integer/elem/cl_I_div.cc: Treat fixnums that need more than 32
1149 * src/integer/elem/cl_I_minus.cc: Call FN_to_V instead of FN_to_L.
1150 * src/integer/elem/cl_I_mul.cc: Likewise.
1151 * src/integer/elem/cl_I_plus.cc: Likewise.
1152 * src/integer/elem/cl_I_square.cc: Likewise.
1153 * src/integer/elem/cl_I_uminus.cc: Likewise.
1154 * src/integer/gcd/cl_I_gcd.cc: Likewise.
1155 * src/integer/gcd/cl_low_gcd.cc (gcd): Take uintV arguments.
1156 * src/integer/hash/cl_I_hashcode.cc: Call FN_to_V instead of FN_to_L.
1157 * src/integer/input/cl_I_read.cc (read_integer): Call FN_to_UV instead
1159 * src/integer/misc/cl_I_ord2.cc (ord2): Call ord2_64 on 64-bit
1161 * src/integer/misc/cl_I_power2p.cc: Call FN_to_UV instead of FN_to_UL.
1162 * src/integer/misc/combin/cl_I_doublefactorial.cc (doublefakul_table):
1163 Extend table for larger fixnums.
1164 (doublefactorial): Update.
1165 * src/integer/misc/combin/cl_I_factorial.cc (fakul_table): Extend table
1167 (factorial): Update.
1168 * src/modinteger/cl_MI_fix16.h: Call FN_to_UV instead of FN_to_UL.
1169 * src/modinteger/cl_MI_fix29.h: Likewise.
1170 * src/modinteger/cl_MI_fix32.h: Likewise.
1171 * src/modinteger/cl_MI_std.h: Likewise.
1172 * src/numtheory/cl_nt_cornacchia4.cc: Call FN_to_V instead of FN_to_L.
1173 * src/numtheory/cl_nt_jacobi.cc: Likewise.
1174 * src/numtheory/cl_nt_jacobi_low.cc (jacobi_aux): Take uintV arguments
1175 instead of uint32 arguments.
1176 (jacobi): Take sintV argument instead of a sint32 argument.
1177 * src/rational/input/cl_RA_read.cc: Call FN_to_UV instead of FN_to_UL.
1178 * src/real/input/cl_R_read.cc: Likewise.
1179 * src/vector/cl_GV_I.cc: Likewise.
1180 * tests/timefact.cc: Call FN_to_V instead of FN_to_L.
1182 2005-12-04 Bruno Haible <bruno@clisp.org>
1184 More complete 64-bit division macros.
1185 * src/base/cl_low.h (divu_6432_3232_w): Choose a different macro
1186 expansion on x86_64.
1187 (divu_6432_6432): New macro.
1188 (divu_6464_6464): Choose a different macro expansion for all CPUs
1189 except sparc64 and x86_64.
1190 (divu_12864_6464): Define NEED_VAR_divu_64_rest here.
1191 * src/base/low/cl_low_div.cc (divu_64_rest): Avoid defining it twice.
1192 (divu_6464_6464_): New function.
1194 2005-12-04 Bruno Haible <bruno@clisp.org>
1196 * src/base/cl_low.h (ord2_64): New macro.
1198 2005-12-02 Bruno Haible <bruno@clisp.org>
1200 * src/base/cl_low.h (mulu64) [x86_64]: Change asm restriction, since
1201 mulq doesn't accept immediate arguments.
1203 2005-11-26 Bruno Haible <bruno@clisp.org>
1205 * src/base/cl_low.h (GENERIC_INTEGERLENGTH32): New macro.
1206 (integerlength64): Define using integerlength32 if integerlength32
1207 is not defined generically.
1209 2005-11-26 Bruno Haible <bruno@clisp.org>
1211 * src/base/cl_low.h (mulu32) [SPARC64]: Remove rd instruction, since
1212 umul returns the complete 64-bit product in a register.
1213 (mulu32_w) [SPARC64]: Prefer umul over mulx instruction.
1214 (divu_6432_3232_w) [SPARC64]: Prefer umul/udiv over mulx/udivx
1217 2005-11-26 Bruno Haible <bruno@clisp.org>
1219 * src/base/cl_low.h (divu_3216_1616): Prepend underscore to local
1222 2005-11-26 Bruno Haible <bruno@clisp.org>
1224 * src/base/cl_low.h (ord2_32): Parenthesize macro argument.
1226 2005-12-17 Richard B. Kreckel <kreckel@ginac.de>
1228 * Created branch cln_1-1 for maintenance patches.
1229 This is the main branch, which will eventually become CLN 1.2.0.
1231 2005-12-15 Dmitry V. Kustov <kustov@telex221.ru>
1233 * src/base/random/cl_random_from.cc: Add support for OpenBSD.
1235 2005-11-23 Richard B. Kreckel <kreckel@ginac.de>
1237 * Version 1.1.11 released.
1239 2005-11-20 Richard B. Kreckel <kreckel@ginac.de>
1241 * src/integer/conv/cl_I_cached_power.h: New file.
1242 * src/integer/conv/cl_I_cached_power.cc: New file.
1243 Contains power_table and cached_power_table previously...
1244 * src/integer/conv/cl_I_to_digits.cc: ...here.
1245 * src/integer/conv/cl_I_from_digits.cc: Use cached powers.
1247 2005-11-02 Richard B. Kreckel <kreckel@ginac.de>
1249 * src/integer/conv/cl_I_from_digits.cc: Made input of all numbers in
1250 non-power-of-two base much faster.
1251 * tests/test_I_io.cc: New file...
1252 * tests/Makefile.in, tests/test_I.cc: ...used here.
1254 2005-10-22 Richard B. Kreckel <kreckel@ginac.de>
1256 * Version 1.1.10 released.
1258 2005-10-22 Richard B. Kreckel <kreckel@ginac.de>
1260 * src/Makefile.in: Accept CPPFLAGS from environment.
1261 * examples/Makefile.in: Likewise.
1262 * benchmarks/Makefile.in: Likewise.
1263 * tests/Makefile.in: Likewise.
1265 2005-08-30 Richard B. Kreckel <kreckel@ginac.de>
1267 * include/cln/modules.h (CL_OUTPUT_LABEL): Work around redundant
1268 duplication of basic blocks on m68k.
1270 2005-08-30 Richard B. Kreckel <kreckel@ginac.de>
1272 * include/cln/modules.h (CL_JUMP_TO): Fix mips* brokenness.
1274 2005-08-27 Bruno Haible <bruno@clisp.org>
1276 Split aclocal.m4 into individual files.
1277 * m4/alloca.m4, m4/as-underscore.m4, m4/c++-constructors.m4:
1278 * m4/fpu_control.m4, m4/general.m4, m4/gettimeofday.m4:
1279 * m4/longdouble.m4, m4/longlong.m4, m4/param.m4, m4/perror.m4:
1280 * m4/proto.m4, m4/rusage.m4, m4/times.m4:
1281 New files, extracted from autoconf/aclocal.m4.
1282 * autoconf/aclocal.m4: m4_include them.
1283 * Makefile.devel (AUTOCONF_MACROS): New variable.
1284 (configure): Depend on it.
1285 (CLISP_M4DIR): Remove variable.
1286 (autoconf/aclocal.m4): Remove rule.
1288 2005-08-27 Bruno Haible <bruno@clisp.org>
1290 * src/integer/bitwise/cl_I_ash_I.cc (ash): Avoid shifting a 32-bit
1291 zero value by more than 31 bits.
1293 2005-08-27 Bruno Haible <bruno@clisp.org>
1295 Make the long-float overflow check work on 64-bit platforms.
1296 * src/float/lfloat/cl_LF.h (LF_exp_mid, LF_exp_high): Define as
1297 'unsigned int', not 'unsigned long'.
1299 2005-08-27 Bruno Haible <bruno@clisp.org>
1301 * include/cln/modules.h (CL_OUTPUT_LABEL): Work around redundant
1302 duplication of basic blocks by g++ 4.0.
1303 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23345>.
1305 2005-08-27 Bruno Haible <bruno@clisp.org>
1307 Make it possible to cross-compile CLN.
1308 * m4/intparam.m4: New file.
1309 * m4/floatparam.m4: New file.
1310 * autoconf/aclocal.m4: Include both.
1311 (CL_MACHINE): Add an additional CROSS_MACRO parameter.
1312 * configure.ac (CL_MACHINE): When cross-compiling, use
1313 CL_INTPARAM_CROSS and CL_FLOATPARAM_CROSS.
1315 2005-08-27 Bruno Haible <bruno@clisp.org>
1317 Define HAVE_LONGLONG and HAVE_LONGDOUBLE when cross-compiling.
1318 * autoconf/aclocal.m4 (CL_LONGLONG, CL_LONGDOUBLE): When cross-
1319 compiling, use the test code from gnulib.
1321 2005-08-27 Bruno Haible <bruno@clisp.org>
1323 * autoconf/aclocal.m4 (CL_RUSAGE): Fix error when cross-compiling.
1325 2005-08-16 Richard B. Kreckel <kreckel@ginac.de>
1327 The patch of 2005-05-01 made it impossible to test the type of a cl_UP
1328 by comparing with &cl_class_univpoly_ring. We need an alternative:
1329 * include/cln/object.h (cl_class_flags_modint_ring): New #define...
1330 * src/polynomial/elem/cl_UP.cc (cl_class_univpoly_ring): ...used here.
1331 * src/polynomial/elem/cl_UP_GF2.h: Likewise.
1332 * src/polynomial/elem/cl_UP_MI.h: Likewise.
1333 * src/polynomial/elem/cl_UP_gen.h: Likewise.
1334 * src/polynomial/elem/cl_UP_number.h: Likewise.
1336 2005-08-15 Richard B. Kreckel <kreckel@ginac.de>
1338 * m4/cc.m4 (CL_AS_NOEXECSTACK): New macro...
1339 * configure.ac: ...used here for setting ASMFLAGS...
1340 * src/Makefile.in: ...which are used here.
1342 2005-08-02 Andreas Jochens <aj@andaco.de>
1344 * include/cln/config.h.in: Add support for PowerPC 64 CPU.
1345 * include/cln/modules.h: Likewise.
1346 * include/cln/object.h: Likewise.
1347 * include/cln/types.h: Likewise.
1349 2005-07-24 Richard B. Kreckel <kreckel@ginac.de>
1351 Make out of the box build on x86_64 system with complete 32 bit
1353 * include/cln/config.h.in: Don't #define __x86_64__ when
1354 __i386__ is defined.
1355 * src/base/digitseq/cl_asm_x86_64_.cc: New file.
1356 * doc/cln.tex: Revert workaround description introduced 2005-05-02.
1358 2005-06-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1360 * Makefile.in: Don't enter nonexisting directories.
1362 2005-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1364 Speed up the linking step
1365 * src/Makefile.in: Use -objectlist for linking libcln.la.
1367 2005-05-15 Richard B. Kreckel <kreckel@ginac.de>
1369 * autoconf/ltmain.sh: Upgrade to libtool-1.5.16.
1370 * m4/libtool.m4: Upgrade to libtool-1.5.16 (without Comeau patch).
1372 2005-05-02 Richard B. Kreckel <kreckel@ginac.de>
1374 * doc/cln.tex: Document what to do on a x86_64 machine with 32-bit
1377 2005-05-01 Richard B. Kreckel <kreckel@ginac.de>
1379 Fix crashes in find_univpoly_ring and related functions
1380 * include/cln/modinteger.h: Remove vptr from cl_heap_modint_ring;
1381 remove declaration of cl_class cl_class_modint_ring.
1382 * include/cln/univpoly.h: Remove vptr from cl_heap_univpoly_ring;
1383 remove declaration of cl_class_univpoly_ring.
1384 * include/cln/object.h: cl_class_flags_modint_ring: New #define...
1385 * src/modinteger/cl_MI.cc: ...used in cl_class_modint_ring.
1386 * src/modinteger/cl_MI_fix16.h: No vptr, but static dtor and type flag.
1387 * src/modinteger/cl_MI_fix29.h: Likewise.
1388 * src/modinteger/cl_MI_fix32.h: Likewise.
1389 * src/modinteger/cl_MI_int32.h: Likewise.
1390 * src/modinteger/cl_MI_montgom.h: Likewise.
1391 * src/modinteger/cl_MI_pow2: Likewise.
1392 * src/modinteger/cl_MI_pow2m1.h: Likewise.
1393 * src/modinteger/cl_MI_pow2p1.h: Likewise.
1394 * src/modinteger/cl_MI_std.h: Likewise.
1395 * src/polynomial/elem/cl_UP.cc (cl_make_univpoly_ring): Compare with
1396 cl_class_flags_modint_ring, not with cl_class_modint_ring.
1397 * src/polynomial/elem/cl_UP_GF2.h (cl_class_num_univpoly_ring): New.
1398 * src/polynomial/elem/cl_UP_MI.h (cl_class_modint_univpoly_ring): New.
1399 * src/polynomial/elem/cl_UP_gen.h (cl_class_gen_univpoly_ring): New.
1400 * src/polynomial/elem/cl_UP_number.h (cl_class_num_univpoly_ring): New.
1401 Reported by Ralf Goertz <R_Goertz@web.de>.
1403 2005-04-29 Richard B. Kreckel <kreckel@ginac.de>
1404 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1406 * m4/cc.m4: Emit a warning if g++ is used and optimization turned off.
1408 2005-04-24 Richard B. Kreckel <kreckel@ginac.de>
1410 Make GCC compiler flags default to -O
1411 * m4/cc.m4: New file...
1412 * configure.ac: ...used here.
1413 * autoconf/aclocal.m4: Regenerate.
1415 2005-04-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1417 * include/cln/string.h: Declare cl_string.
1419 2005-03-17 Richard B. Kreckel <kreckel@ginac.de>
1421 * autoconf/ltmain.sh: Upgrade to libtool-1.5.14.
1422 * m4/libtool.m4: Upgrade to libtool-1.5.14 with Comeau patch.
1423 * autoconf/aclocal.m4: Regenerate.
1425 2005-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1427 * src/Makefile.in: Use $CXX instead of $CC when linking.
1429 2005-02-27 Richard B. Kreckel <kreckel@ginac.de>
1431 * examples/perfnum.cc: update to presumed 42st Mersenne prime.
1433 2004-11-28 Richard B. Kreckel <kreckel@ginac.de>
1435 Disambiguate binary operators of CLN types with float/double
1436 * include/cln/dfloat.h: Add binary operator overloads for arguments of
1438 * include/cln/ffloat.h: Likewise, for arguments of type float.
1439 * include/cln/float.h: Likewise, both for arguments of types double and
1441 * include/cln/real.h: Likewise.
1442 Reported by Isidro Cachadiña Gutiérrez <icacha@unex.es>.
1444 2004-11-03 Richard B. Kreckel <kreckel@ginac.de>
1446 * Version 1.1.9 released.
1448 2004-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1450 * src/Makefile.in: Let config.status set LDFLAGS.
1452 2004-10-27 Peter Breitenlohner <peb@mppmu.mpg.de>
1454 * cln.pc.in: Fix typo.
1455 * Makefile.in (INSTALL_SCRIPT): Added, to be used for scripts like
1456 cln-config. Allows us to do special things to binaries, like
1457 installing them with install -s.
1458 * doc/Makefile.in: add/remove the cln.info from the installed
1459 $(infodir)/dir unless this is debian install-info (code copied from
1460 what GNU automake would produce).
1462 2004-10-26 Richard B. Kreckel <kreckel@ginac.de>
1464 * src/integer/input/cl_I_read_stream.cc (read_integer): Fix a bug
1465 that caused radix specifiers to not work when reading from a stream.
1466 * src/rational/input/cl_RA_read_stream.cc (read_rational): Likewise.
1467 * src/real/input/cl_R_read_stream.cc (read_real): Likewise.
1468 * src/float/input/cl_F_read_stream.cc (read_float): Likewise.
1469 * src/complex/input/cl_N_read_stream.cc (read_complex): Likewise.
1471 2004-10-25 Richard B. Kreckel <kreckel@ginac.de>
1473 * src/base/cl_low.h: Add mulu64 assembler macro for ia64.
1475 2004-10-24 Richard B. Kreckel <kreckel@ginac.de>
1477 * src/base/cl_low.h: Add mul and div macros for x86_64.
1479 2004-10-23 Richard B. Kreckel <kreckel@ginac.de>
1481 * src/integer/conv/cl_I_from_digits.cc (digits_to_I): Fix thinko in
1482 new code for base power of two.
1484 2004-10-22 Richard B. Kreckel <kreckel@ginac.de>
1486 * src/integer/conv/cl_I_to_digits (I_to_digits): Fix an elusive stack
1487 overwriting problem. That was the real cause for Debian bug#246319.
1488 * src/integer/output/cl_I_print.cc (print_integer): Revert workaround
1489 for the bug fixed above.
1491 2004-10-20 Richard B. Kreckel <kreckel@ginac.de>
1493 * include/cln/types.h: Use 64 bit digits on x86_64 CPU.
1495 2004-10-12 Richard B. Kreckel <kreckel@ginac.de>
1497 * src/integer/conv/cl_I_from_digits.cc (digits_to_I): Speedup when
1498 the base is a power of two.
1500 2004-10-05 Richard B. Kreckel <kreckel@ginac.de>
1502 * src/integer/conv/cl_I_to_digits.cc (I_to_digits): Fix bug in base 32.
1504 2004-09-27 Richard B. Kreckel <kreckel@ginac.de>
1506 Support for little-endian Mips, second shot
1507 * src/base/digitseq/cl_asm_mipsel_.cc: New file...
1508 * src/base/digitseq/cl_asm_cc: ...used here.
1509 * src/base/digitseq/cl_asm.h: Include cl_asm_mips.h for any endianness.
1510 * include/cln/object.h: Set alignment for mipsel explicitly.
1512 2004-09-05 Richard B. Kreckel <kreckel@ginac.de>
1514 Support for little-endian Mips
1515 * include/cln/config.h.in: Add __mipsel__.
1516 * include/cln/modules.h: For Mips, this is endianness-agnostic.
1517 * src/base/digitseq/cl_asm_.cc, src/base/digitseq/cl_asm.h:
1518 Mask out assembler for little-endian Mips.
1520 2004-08-30 Bruno Haible <bruno@clisp.org>
1522 * benchmarks/timebench2.sh: Multiply all repeat counts by 100.
1523 * benchmarks/timebench2.results: Add recent PowerPC G4 results.
1525 2004-08-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1527 * examples/e.cc: remove extra semicolon.
1529 2004-08-25 Bruno Haible <bruno@clisp.org>
1531 * autoconf/ltmain.sh: Upgrade to libtool-1.5.6.
1532 * m4/libtool.m4: New file, from libtool-1.5.6 with modifications:
1533 2004-08-22 Bruno Haible <bruno@clisp.org>
1534 * m4/libtool.m4: Add support for Comeau C++ on Linux.
1535 Reported by Prof. Roberto Bagnara <bagnara@cs.unipr.it>.
1536 * autoconf/aclocal.m4: Regenerate.
1538 2004-08-19 Bruno Haible <bruno@clisp.org>
1540 * include/cln/modules.h (CL_GLOBALIZE_JUMP_LABEL, CL_JUMP_TO): When
1541 converting a label to a string, use ASM_UNDERSCORE_PREFIX. Needed on
1543 Reported by Darren Bane <darren.bane@ul.ie>.
1545 2004-07-01 Richard B. Kreckel <kreckel@ginac.de>
1547 * Version 1.1.8 released.
1549 2004-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1551 * src/base/cl_macros.h: alloca(3) has size_t argument type.
1553 2004-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1555 * include/cln/floatformat.h: Do define a type here.
1557 2004-06-27 Richard B. Kreckel <kreckel@ginac.de>
1559 * include/cln/modules.h (CL_JUMP_TO): Fix AMD64 brokenness.
1561 2004-06-23 Bruno Haible <bruno@clisp.org>
1563 * configure.ac: Pretend ftime() is not available. Needed by
1566 2004-06-21 Ralf Stephan <ralf@ark.in-berlin.de>
1568 * doc/cln.tex: Document jacobi, isprobprime and nextprobprime.
1570 2004-06-18 Richard B. Kreckel <kreckel@ginac.de>
1572 * rational/transcendental/cl_RA_logp.cc: fix bug where base is
1573 reciprocal of an integer.
1574 Reported by Niklas Knutsson <nq@altern.org>.
1576 2004-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1578 * src/complex/ring/cl_C_ring.cc, src/integer/ring/cl_I_ring.cc,
1579 src/rational/ring/cl_RA_ring.cc, src/real/ring/cl_R_ring.cc:
1580 Make template specializations explicit.
1582 2004-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1584 * src/complex/input/cl_N_read.cc, src/float/input/cl_F_read.cc,
1585 src/integer/input/cl_I_read.cc, src/rational/input/cl_RA_read.cc,
1586 src/real/input/cl_R_read.cc: Remove unused labels.
1588 2004-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1590 * benchmarks/timebench1.cc, benchmarks/timebench2a.LiDIA.cc,
1591 benchmarks/timebench2a.cc, benchmarks/timebench2ap.cc,
1592 benchmarks/timebench2b.LiDIA.cc, benchmarks/timebench2b.cc,
1593 examples/atan_recip.cc, examples/atanh_recip.cc,
1594 examples/contfrac.cc, examples/e.cc, examples/legendre.cc,
1595 examples/lucaslehmer.cc, examples/pi.cc, include/cln/GV.h,
1596 include/cln/SV.h, include/cln/malloc.h, include/cln/modules.h,
1597 include/cln/object.h, include/cln/string.h, src/base/cl_abort.cc,
1598 src/base/cl_alloca.h, src/base/cl_malloc.cc,
1599 src/base/random/cl_random_from.cc,
1600 src/base/string/cl_spushstring_append.cc,
1601 src/base/string/cl_spushstring_push.cc,
1602 src/base/string/cl_st_debug.cc,
1603 src/base/string/input/cl_st_gettoken.cc,
1604 src/complex/input/cl_N_read.cc, src/float/input/cl_F_read.cc,
1605 src/float/output/cl_F_dprint.cc, src/integer/input/cl_I_read.cc,
1606 src/rational/input/cl_RA_read.cc,
1607 src/real/format-output/cl_fmt_integer.cc,
1608 src/real/format-output/cl_fmt_paddedstring.cc,
1609 src/real/input/cl_R_read.cc, src/timing/cl_t_current.cc,
1610 src/timing/cl_t_current2.cc, tests/exam.cc, tests/tests.cc,
1611 tests/timeLFRAmul.cc, tests/timeLFatan-compare.cc,
1612 tests/timeLFatan.cc, tests/timeLFatanh-compare.cc,
1613 tests/timeLFatanh.cc, tests/timeLFcos-compare.cc, tests/timeLFcos.cc,
1614 tests/timeLFcosh.cc, tests/timeLFexp-compare.cc, tests/timeLFexp.cc,
1615 tests/timeLFln-compare.cc, tests/timeLFln.cc,
1616 tests/timeLFsin-compare.cc, tests/timeLFsin.cc, tests/timeLFsinh.cc,
1617 tests/timeLFsqrt.cc, tests/timeMImisc5.cc, tests/timeMIpow2div.cc,
1618 tests/timeMIpow2recip.cc, tests/timeRALFdiv.cc, tests/timeRAtoLF.cc,
1619 tests/timeUPMImul.cc, tests/timecatalan.cc, tests/timediv.cc,
1620 tests/timediv2adic-compare.cc, tests/timediv2adic.cc,
1621 tests/timeeuler.cc, tests/timeexp1.cc, tests/timefact.cc,
1622 tests/timegcd.cc, tests/timemul-compare.cc, tests/timemul.cc,
1623 tests/timepi.cc, tests/timeprint-compare.cc, tests/timeprint.cc,
1624 tests/timerecip2adic-compare.cc, tests/timerecip2adic.cc,
1625 tests/timesqrt.cc, tests/timesqrtmodp.cc, tests/timesquare.cc,
1626 tests/timezeta3.cc: Change all C include headers to ISO style
1629 2004-06-10 Richard B. Kreckel <kreckel@ginac.de>
1631 * examples/perfnum.cc: update to presumed 41st Mersenne prime.
1633 2004-05-02 Richard B. Kreckel <kreckel@ginac.de>
1635 * Version 1.1.7 released.
1637 2004-05-02 Richard B. Kreckel <kreckel@ginac.de>
1639 * examples/pi.cc and examples/pi.1: New files.
1640 * examples/Makefile.in: Build the pi executable.
1642 2004-05-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1644 * src/Makefile.in: Fix for parallel build: wait for subdir objects to
1645 be finished before creating the library.
1647 2004-04-30 Richard B. Kreckel <kreckel@ginac.de>
1649 * src/integer/output/cl_I_print.cc (print_integer): workaround
1650 GCC compiler bug (cf. Debian bug#246319).
1652 2004-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1654 * m4/gmp.m4 (CL_GMP_CHECK): Do not lose LIBS setting with config.cache
1657 2004-03-08 Bruno Haible <bruno@clisp.org>
1659 * src/float/lfloat/elem/cl_LF_mul.cc (operator*): Fix the second
1660 underflow condition.
1661 * src/float/lfloat/algebraic/cl_LF_sqrt.cc (sqrt): Fix a bug with large
1662 uexp whereby SQRT of MOST-POSITIVE-LONG-FLOAT was less than 1.
1664 2004-03-04 Richard B. Kreckel <kreckel@ginac.de>
1666 * Makefile.in (install): Add ${srcdir} for cln.m4.
1667 * m4/gmp.m4: quote macro names.
1668 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1670 2004-01-01 Richard B. Kreckel <kreckel@ginac.de>
1672 * Version 1.1.6 released.
1674 2004-01-01 Richard B. Kreckel <kreckel@ginac.de>
1676 * include/cln/univpoly.h, include/cln/univpoly_complex.h,
1677 include/cln//univpoly_integer.h, include/cln/univpoly_modint.h,
1678 include/cln/univpoly_rational.h, include/cln/univpoly_real.h,
1679 src/polynomial/elem/cl_UP_GF2.h, src/polynomial/elem/cl_UP_MI.h,
1680 src/polynomial/elem/cl_UP_gen.h, src/polynomial/elem/cl_UP_no_ring.cc,
1681 src/polynomial/elem/cl_UP_number.h (ldegree): New function.
1682 * doc/cln.tex: Document `ldegree'.
1684 2003-12-29 Richard B. Kreckel <kreckel@ginac.de>
1686 Rework of autoconfiscation infrastructure
1687 * autoconf/config.{guess,sub}: Update to GNU version 2003-10-07.
1688 * autoconf/ltmain.sh: Update to GNU version 1.4.3.
1689 * autoconf/autoconf: Remove (from now on we assume autoconf is
1690 installed properly on the sytem).
1691 * autoconf/autoconf.m4: Likewise.
1692 * autoconf/autoconf.m4f: Likewise.
1693 * autoconf/acgeneral.m4: Likewise.
1694 * autoconf/acspecific.m4: Likewise.
1695 * autoconf/aclocal.m4: Regenerate.
1696 * autoconf/acinclude.m4: Remove (while moving the macros...)
1697 * m4/gmp.m4: New file (...to here).
1698 * Makefile.devel: Update to new scheme.
1699 * configure.ac: Likewise.
1700 * include/cln/GV_integer.h: Assume template specializations work.
1701 * include/cln/GV_modinteger.h: Likewise.
1702 * include/cln/config.h.in: Likewise, and drop HAVE_BOOL.
1703 * src/base/cl_base_config.h.in: Drop support for obsolete ftime(3).
1704 * src/base/random/cl_random_from.cc: Likewise.
1705 * src/timing/cl_base_config.h.in: Likewise.
1706 * src/timing/cl_t_current.cc: Likewise.
1708 2003-12-27 Richard B. Kreckel <kreckel@ginac.de>
1710 * src/polynomial/cl_UP_gen.h (gen_minus): Fix case where first
1712 * src/polynomial/cl_UP_MI.h (modint_minus): Likewise.
1713 * src/polynomial/cl_UP_number.h (num_minus): Likewise.
1714 Reported by Munagala Ramanath <amberarrow@yahoo.com>.
1716 2003-12-02 Richard B. Kreckel <kreckel@ginac.de>
1718 * examples/perfnum.cc: update to presumed 40th Mersenne prime.
1720 2003-11-20 Christian Bauer <cbauer@ginac.de>
1722 Added pkg-config support
1723 * cln.pc.in: New file.
1724 * Makefile.in: Take care of cln.pc.
1725 * configure.ac: Likewise.
1727 2003-08-06 Richard B. Kreckel <kreckel@ginac.de>
1729 * src/numtheory/cl_nt_sqrtmodp.cc: #undef _R.
1730 Reported by Andrew Rechnitzer <A.Rechnitzer@ms.unimelb.edu.au>.
1732 2003-08-01 Richard Kreckel <kreckel@ginac.de>
1734 More dependent base resolution issues
1735 * src/base/hash/cl_hash.h (cl_heap_hashtable<T>::iterator()):
1736 portable syntactic simplification.
1737 * src/base/hash/cl_hashset.h: Preceed inherited members with this->.
1738 * src/base/hash/cl_hash1.h: Likewise for member functions.
1739 * src/base/hash/cl_hash2.h: Likewise.
1740 * src/base/hash/cl_hashuniq.h: Likewise.
1741 * src/base/hash/cl_hashuniqweak.h: Likewise.
1742 * src/base/hash/cl_hash.h: Revert explicit static member function
1743 lookup since that was GCC's fault.
1744 * src/base/hash/cl_hash2weak.h: Likewise.
1745 * src/base/hash/cl_hashuniqweak.h: Likewise.
1747 2003-06-29 Richard Kreckel <kreckel@ginac.de>
1749 Dependent base resolution needed for GCC-3.4
1750 * include/cln/GV.h: Preceed inherited members with this->.
1751 * include/cln/SV.h: Likewise.
1752 * include/cln/object.h: Likewise.
1753 * src/base/hash/cl_hash1.h: Likewise.
1754 * src/base/hash/cl_hash1weak.h: Likewise.
1755 * src/base/hash/cl_hash2.h: Likewise.
1756 * src/base/hash/cl_hashuniq.h: Likewise.
1757 * src/base/hash/cl_hash.h: Make lookup of static member function
1759 * src/base/hash/cl_hash2weak.h: Likewise.
1760 * src/base/hash/cl_hashuniqweak.h: Likewise.
1761 * src/modinteger/cl_MI.cc: Make shell-comment a C-comment. Geez.
1763 2003-02-24 Bruno Haible <bruno@clisp.org>
1765 * src/base/random/cl_random_from.cc (random_state::random_state): Add
1766 support for MacOS X.
1767 * src/modinteger/cl_MI.cc: #undef _R.
1768 Reported by Erann Gat <gat@jpl.nasa.gov>.
1770 2002-08-03 Joerg Arndt <jj@suse.de>
1772 * include/cln/config.h.in: Add support for x86_64 CPU.
1773 * include/cln/modules.h: Likewise.
1774 * include/cln/types.h: Likewise.
1775 * include/cln/object.h: Likewise.
1777 2002-06-08 Richard Kreckel <kreckel@ginac.de>
1779 * src/base/digitseq/cl_asm.h: ensure intCsize==16 when including
1780 m68k Assembler routines.
1781 * src/base/digitseq/cl_asm_.cc: Likewise.
1783 2002-05-28 Richard Kreckel <kreckel@ginac.de>
1785 * Version 1.1.5 released.
1787 2002-05-27 Richard Kreckel <kreckel@ginac.de>
1789 * include/cln/modules.h (CL_CONCATENATE): New macro.
1791 2002-05-10 Richard Kreckel <kreckel@ginac.de>
1793 * doc/cln.tex (Building the library): Update recommendations for
1794 compiling on Tru64 using g++ 3.0 and 3.1.
1795 * README: Update homepage.
1797 2002-05-05 Bruno Haible <bruno@clisp.org>
1799 * doc/cln.tex (Building the library): Give some recommendations for
1802 Force link-time references despite optimizations done by g++ 2.95
1804 * include/cln/modules.h (CL_FORCE_LINK): New macro.
1805 * Use CL_FORCE_LINK.
1806 * include/cln/GV_integer.h (cl_GV_I_debug_dummy): Likewise.
1807 * include/cln/GV_number.h (cl_GV_number_debug_dummy): Likewise.
1808 * include/cln/SV_number.h (cl_SV_number_debug_dummy): Likewise.
1809 * include/cln/SV_ringelt.h (cl_SV_ringelt_debug_dummy): Likewise.
1810 * include/cln/dfloat.h (cl_DF_debug_dummy): Likewise.
1811 * include/cln/ffloat.h (cl_FF_classes_dummy, cl_FF_debug_dummy):
1813 * include/cln/integer.h (cl_I_classes_dummy, cl_I_debug_dummy):
1815 * include/cln/lfloat.h (cl_LF_debug_dummy): Likewise.
1816 * include/cln/modinteger.h (cl_MI_debug_dummy): Likewise.
1817 * include/cln/rational.h (cl_RA_debug_dummy): Likewise.
1818 * include/cln/real.h (cl_R_debug_dummy): Likewise.
1819 * include/cln/ring.h (cl_ring_debug_dummy): Likewise.
1820 * include/cln/sfloat.h (cl_SF_classes_dummy, cl_SF_classes_dummy):
1822 * include/cln/string.h (cl_string_debug_dummy): Likewise.
1823 * include/cln/univpoly.h (cl_UP_debug_dummy): Likewise.
1824 * src/float/base/cl_ieee.h (cl_ieee_dummy_NNN): Likewise.
1826 Avoid g++ 3.1 warnings.
1827 * src/base/cl_offsetof.h (offsetof): Redefine each time.
1828 * src/base/digitseq/cl_DS.h: Include "cl_offsetof.h" after <gmp.h>.
1830 Avoid g++ 3.1 warnings.
1831 * src/base/hash/cl_hash.h (struct cl_heap_hashtable): Use typename
1833 * src/base/hash/cl_hash1.h (struct cl_heap_hashtable_1): typedef
1834 htxentry as a shortcut.
1835 * src/base/hash/cl_hash2.h (struct cl_heap_hashtable_2): Likewise.
1836 * src/base/hash/cl_hashset.h (struct cl_heap_hashtable_set): Likewise.
1837 * src/base/hash/cl_hashuniq.h (struct cl_heap_hashtable_uniq):
1840 2002-03-15 Bruno Haible <bruno@clisp.org>
1842 * cln.tex: Document problem with GNU make 3.77.
1843 Reported by Michael Somos <somos@grail.cba.csuohio.edu>.
1845 2002-02-16 Richard Kreckel <kreckel@ginac.de>
1847 * cln.m4: quote macro name.
1848 Pointed out by Roberto Bagnara.
1850 2002-01-20 Richard Kreckel <kreckel@ginac.de>
1852 * autoconf/config.{guess,sub}: Update to GNU version 2002-01-02.
1853 (the old one was broken on Linux/Mips.)
1855 2002-01-04 Richard Kreckel <kreckel@ginac.de>
1857 * autoconf/autoconf.m4f: get brutal in order to adhere to FHS.
1858 * Version 1.1.4 released.
1860 2002-01-03 Richard Kreckel <kreckel@ginac.de>
1862 * autoconf/acinclude.m4: revamp MPN-matcher.
1863 * autoconf/aclocal.m4: upgrade to autoconf-2.52 infrastructure,
1864 sync with CLisp from CVS.
1865 * autoconf/autoconf: Likewise.
1866 * autoconf/autoconf.m4f: Likewise (new file).
1867 * configure.ac: Likewise (new file, replaces configure.in).
1868 * configure.in: Likewise (deleted, replaced by configure.ac).
1869 * autoconf/config.{guess,sub}: Update to GNU version 2001-12-13.
1870 * src/Makefile.in: made VPATH safe for autoconf-2.52.
1871 * include/cln/config.h.in: Add __s390__.
1873 2001-12-31 Richard Kreckel <kreckel@ginac.de>
1875 * src/base/digitseq/cl_DS.h: <gmp.h> is not included extern "C"
1876 any more since GMP4 has some C++ support in it.
1878 2001-12-14 Richard Kreckel <kreckel@ginac.de>
1880 * include/cln/modules.h, include/cln/object.h: add support for
1882 * src/numtheory/cl_nt_sqrtmodp.cc: workaround for GCC2.x compiler-bug
1883 on s390, provided by Gerhard Tonn.
1885 2001-11-05 Richard Kreckel <kreckel@ginac.de>
1887 * autoconf/ltmain.sh: Upgrade to libtool-1.4.2.
1888 * autoconf/config.{guess,sub}: Update to GNU version 2001-09-07.
1889 * Version 1.1.3 released.
1891 2001-11-04 Bruno Haible <haible@clisp.cons.org>
1893 Interoperability with gcc-3.0 -fuse-cxa-atexit.
1894 * autoconf/aclocal.m4 (CL_GLOBAL_CONSTRUCTORS): Add test whether
1895 global destructors actually exist.
1896 * include/cln/modules.h (CL_PROVIDE, CL_PROVIDE_END, CL_PROVIDE_END):
1897 Don't hack the global destructors if there is no global destructors
1900 2001-11-03 Richard Kreckel <kreckel@ginac.de>
1902 * src/float/transcendental/cl_F_sinx.cc (sinx_naive): For small
1903 values of x, return square(x) instead of x.
1904 * src/float/transcendental/cl_F_sinhx.cc (sinhx_naive): Likewise.
1906 2001-07-25 Richard Kreckel <kreckel@ginac.de>
1908 * Version 1.1.2 released.
1910 2001-07-24 Richard Kreckel <kreckel@ginac.de>
1912 * src/base/hash/cl_hash.h: declare _cl_hashtable_iterator<htentry> a
1913 friend of cl_heap_hashtable<htentry>.
1915 2001-07-22 Richard Kreckel <kreckel@ginac.de>
1917 * src/float/base/cl_ieee.cc: try to do magic to the FPU only if
1918 _FPU_IEEE is really defined.
1919 * include/cln/modules.h: change assembler labels from `label' to
1920 `label:' on hppa, needed by Linux (see comment).
1921 * autoconf/acinclude.m4: new file (for storing CLN-specific macros).
1922 * Makefile.devel: adjusted.
1923 * autoconf/aclocal.m4: regenerate.
1924 * src/base/low/cl_low_mul.cc: moved POD variables that are declared
1925 extern "C" elsewhere out of the namespace.
1926 * src/base/low/cl_low_div.cc: Likewise.
1928 2001-06-08 Bruno Haible <haible@clisp.cons.org>
1930 * autoconf/config.{guess,sub}: Update to GNU version 2001-05-11.
1931 * autoconf/aclocal.m4: Upgrade to libtool-1.4.
1932 * autoconf/ltmain.sh: Likewise.
1933 * autoconf/ltconfig: Remove file.
1934 * autoconf/install-sh: New file.
1935 * configure.in: Add AC_CONFIG_AUX_DIR call.
1937 2001-06-05 Richard Kreckel <kreckel@ginac.de>
1939 * tests/tests.cc: resolve namespace ambiguity about strcmp().
1941 2001-05-31 Richard Kreckel <kreckel@ginac.de>
1943 * Version 1.1.1 released.
1945 2001-05-28 Richard Kreckel <kreckel@ginac.de>
1947 * cln/cln.tex: documented problems with shared library on Sparc
1948 using gcc older than 2.95.3.
1949 * configure.in: Fixed typos in versioning docu.
1951 2001-05-25 Bruno Haible <haible@clisp.cons.org>
1953 * src/base/digitseq/cl_asm_arm_.cc: Use #0x instead of #& to designate
1954 hexadecimal constants.
1956 2001-05-25 Richard Kreckel <kreckel@ginac.de>
1958 * autoconf/floatparam.c (double_wordorder_bigendian_p): new symbol.
1959 * src/float/dfloat/cl_DF.h: Check for double_wordorder_bigendian_p.
1960 * Removed LiDIA interface since that is now outdated (namespace cln)
1961 and maintained elsewhere.
1962 * Adjusted dates and final touches for 1.1.1.
1964 2001-05-19 Richard Kreckel <kreckel@ginac.de>
1966 * INSTALL: Update toolchain info: no egcs, some more platforms.
1967 * doc/cln.tex: Likewise.
1969 2001-05-18 Richard Kreckel <kreckel@ginac.de>
1971 * src/base/cl_low.h: prepended variables declared inside macros
1972 with underscore. Fixes equal_hashcode() on various platforms.
1974 2001-04-25 Richard Kreckel <kreckel@ginac.de>
1976 * src/base/cl_low.h: Added several checks if NO_ASM is defined, so
1977 this definition becomes actually useful. This is needed for
1978 compilation on Arm until somebody fixes the assembler files for Arm.
1979 * src/base/digitseq/cl_asm.h: Likewise.
1980 * src/base/digitseq/cl_asm_.cc: Likewise.
1981 * */Makefile.in: Added `override' in front of `CPPFLAGS +=' so
1982 one can say `make CPPFLAGS=-DFOOBAR'.
1984 2001-03-26 Arvid Norberg <c99ang@cs.umu.se>
1986 * src/base/random/cl_random_from.cc: ported to beos.
1988 2001-03-05 Richard Kreckel <kreckel@ginac.de>
1990 * include/cln/modules.h (CL_JUMP_TO): Fix IA64 brokenness.
1992 2001-01-28 Richard Kreckel <kreckel@ginac.de>
1994 * include/cln/number.h (cl_as_N): Remove bogus comment.
1996 2001-01-22 Richard Kreckel <kreckel@ginac.de>
1998 * configure.in: Make build in separate builddir possible (again).
2000 2001-01-22 Richard Kreckel <kreckel@ginac.de>
2002 * include/cln/*.h: Change signatures of all classes' methods
2003 cln::cl_foo::operator new(size_t, cl_foo*) to
2004 cln::cl_foo::operator new(size_t, void*) so one can declare
2005 std::vector<cln::cl_foo>, std::list<cln::cl_foo> etc. for
2006 certain STL implementations (like libstdc++-v3).
2008 2000-12-14 Richard Kreckel <kreckel@ginac.de>
2010 * Version 1.1 released.
2012 2000-12-13 Richard Kreckel <kreckel@ginac.de>
2014 * */*: cl_istream -> std::istream, cl_ostream -> std::ostream.
2016 2000-12-05 Richard Kreckel <kreckel@ginac.de>
2018 * Makefile.in, src/Makefile.in, doc/Makefile.in: Use mkdir -p.
2019 * include/cln/version.h.in, src/base/verion.cc: New files.
2020 * configure.in: Generate include/cln/version.h.
2021 * cln.m4: Rewrote it. Check result of cln-config without compiling.
2022 Do cross-check library version and header version information.
2024 2000-12-02 Christian Bauer <cbauer@ginac.de>
2026 * Makefile.in, src/Makefile.in, doc/Makefile.in: Added $DESTDIR.
2027 * cln.m4, cln.spec.in: some minor fixes with respect to RPM package
2030 2000-11-24 Richard Kreckel <kreckel@ginac.de>
2032 * */*: Removed problematic stdin, stdout and stderr definitions.
2033 Use std::cin, std::cout, std::cerr instead (obsoletes 2000-10-29).
2035 2000-11-20 Bruno Haible
2037 * cln-config.1: change title.
2039 2000-11-18 Richard Kreckel <kreckel@ginac.de>
2042 * doc/cln.tex: Document package tools cln-config and cln.m4.
2043 * Makefile.in: Care about cln.m4.
2045 2000-11-17 Richard Kreckel <kreckel@ginac.de>
2047 * cln-config.1: added manpage, as required by a couple of distros.
2048 * Makefile.in, doc/Makefile.in: target install depends on installdirs.
2050 2000-11-16 Richard Kreckel <kreckel@ginac.de>
2052 * autoconf/aclocal.m4 (CL_GMP_SET_UINTD): New macro...
2053 * configure.in: ...used here.
2054 * include/cln/config.h.in: Put in macros defined by CL_GMP_SET_UINTD...
2055 * include/cln/types.h: ...used here.
2056 * autoconf/acgeneral.m4, autoconf/aclocal.m4: Adhere to FHS.
2058 2000-11-13 Richard Kreckel <kreckel@ginac.de>
2060 * src/base/digitseq/cl_asm.h: Test if (intDsize==32) for MIPS and HPPA,
2061 in order to guard against an accidented configuration.
2062 * src/integer/conv/cl_I_to_digits.cc (table): member b_hoch_k of
2063 struct power_table_entry initialized as ULL instead of as UL, if
2064 intDsize==64 (caused misprinting on MIPS w/ GMP).
2065 * src/base/cl_macros.h (minus_bitm, bitc): implemented ULL, if
2067 * src/integer/bitwise/cl_I_mkfx.cc (mkf_extract): Likewise.
2068 * src/integer/conv/cl_I_from_L.cc (cl_I_from_L): Added trival
2069 generation of Bignum for intDsize==64 and a notreached-check at end.
2070 * autoconf/config.guess, autoconf/config.sub: updated from FSF.
2071 * include/cln/config.h.in: Prepared support for IA64.
2072 * include/cln/types.h: Likewise.
2073 * include/cln/object.h: Likewise.
2074 * include/cln/modules.h: Likewise.
2075 * src/base/cl_macros.h (nonreturning_function): Likewise (NUE's
2076 compiler claims __GNUC_MINOR__==9).
2078 2000-11-03 Richard Kreckel <kreckel@ginac.de>
2080 * src/base/cl_macros.h (bit, minus_bit): changed criterion for ULL from
2081 HAVE_DD to HAVE_FAST_LONGLONG.
2082 * src/base/cl_macros.h (bitm): implemented ULL, if HAVE_FAST_LONGLONG.
2083 * src/base/cl_low.h: actually no need to include "cln/types.h" here.
2084 * src/base/cl_low.h (logcount_64): always ULL, independent of HAVE_DD.
2085 * src/base/random/cl_UL_random.cc (random32): a is always ULL.
2087 2000-11-01 Richard Kreckel <kreckel@ginac.de>
2089 * include/cln/object.h (cl_combine): define additional signatures, if
2090 HAVE_LONGLONG is defined, in order to keep the compiler happy.
2091 * src/base/cl_macros.h: include "cln/types.h", since we need HAVE_DD...
2092 * src/base/cl_macros.h (bit): ...for this macro...
2093 * src/base/cl_macros.h (minus_bit): ...and this one.
2094 * src/base/cl_low.h: include "cln/types.h", since we need HAVE_DD...
2095 * src/base/cl_low.h (logcount_64): ...for this macro.
2096 * src/base/random/cl_UL_random.cc (random32): if HAVE_DD a is an ULL.
2097 * src/integer/gcd/cl_I_gcd_aux2.cc (floorDD): fixed algorithmic bug.
2098 that turned up when intDsize==32 and cl_word_size==64.
2099 * src/float/dfloat/elem/cl_DF_div.cc (operator/): fixed a missing cast
2100 to uint64 that turned up when intDsize==32 and cl_word_size==64.
2102 2000-10-29 Richard Kreckel <kreckel@ginac.de>
2104 * src/real/input/cl_R_read.cc, src/complex/input/cl_N_read.cc:
2105 #undef stderr, if it's defined so cln::stderr isn't confused.
2106 * src/base/input/cl_read_globals.cc: stdin should not be extern.
2108 2000-09-05 Richard Kreckel <kreckel@ginac.de>
2110 * include/cln/number.h (As): Fix it in namespace by suffixing `_As'
2111 to the appropiate method instead of prefixing `as_'.
2112 * src/complex/misc/cl_N_as.cc (cl_N_As): Likewise.
2113 * src/real/misc/cl_R_as.cc (cl_R_As): Likewise.
2114 * src/rational/misc/cl_RA_as.cc (cl_RA_As): Likewise.
2115 * src/integer/misc/cl_I_as.cc (cl_I_As): Likewise.
2116 * src/float/misc/cl_F_as.cc (cl_F_As): Likewise.
2117 * src/float/sfloat/misc/cl_SF_as.cc (cl_SF_As): Likewise.
2118 * src/float/lfloat/misc/cl_LF_as.cc (cl_LF_As): Likewise.
2119 * src/float/ffloat/misc/cl_FF_as.cc (cl_FF_As): Likewise.
2120 * src/float/dfloat/misc/cl_DF_as.cc (cl_DF_As): Likewise.
2122 2000-09-05 Richard Kreckel <kreckel@ginac.de>
2124 * src/complex/transcendental/cl_C_expt_C.cc (expt): fix logic for
2127 2000-08-30 Richard Kreckel <kreckel@ginac.de>
2129 * include/cln/number.h, cl_number::_as_cl_private_thing(): removed.
2130 Rearranged for a clearer distinction between macros and remaining
2131 identifiers, so Cint can parse it smoothly.
2133 2000-08-29 Richard Kreckel <kreckel@ginac.de>
2135 * include/cln/number.h, the(const cl_number& x): New template
2138 2000-08-29 Richard Kreckel <kreckel@ginac.de>
2140 * */*: Pushed CLN into a namespace `cln'. While doing so, the
2141 following identifiers got their poor-man's namespace (i.e. the
2142 prefix `cl_') stripped off:
2143 cl_catalanconst() -> catalanconst()
2144 cl_compare() -> compare()
2145 cl_cos_sin() -> cos_sin()
2146 cl_cos_sin_t -> cos_sin_t
2147 cl_cosh_sinh() -> cosh_sinh()
2148 cl_cosh_sinh_t -> cosh_sinh_t
2149 cl_decoded_dfloat -> decoded_dfloat
2150 cl_decoded_ffloat -> decoded_ffloat
2151 cl_decoded_float -> decoded_float
2152 cl_decoded_lfloat -> decoded_lfloat
2153 cl_decoded_sfloat -> decoded_sfloat
2154 cl_default_float_format -> default_float_format
2155 cl_default_print_flags -> default_print_flags
2156 cl_default_random_state -> default_random_state
2157 cl_double_approx() -> double_approx()
2158 cl_equal() -> equal()
2159 cl_equal_hashcode() -> equal_hashcode()
2160 cl_eulerconst() -> eulerconst()
2161 cl_find_modint_ring() -> find_modint_ring()
2162 cl_find_univpoly_ring() -> find_univ_poly_ring()
2163 cl_float_approx() -> float_approx
2164 cl_float_format() -> float_format()
2165 cl_float_format_t -> float_format_t
2166 cl_free_hook() -> free_hook()
2167 cl_hermite() -> hermite()
2168 cl_laguerre() -> laguerre()
2169 cl_legendre() -> legandre()
2170 cl_malloc_hook() -> malloc_hook()
2172 cl_tschebychev() -> tschebychev()
2174 NB: For functions these changes includes all signatures.
2175 * include/*: moved to include/cln/*, stripped `cl_' off filenames.
2176 * cln-config.in: new file.
2178 2000-08-26 Bruno Haible <haible@clisp.cons.org>
2180 * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
2183 2000-08-18 Bruno Haible <haible@clisp.cons.org>
2185 * include/cl_univpoly_modint.h: Fix typo.
2187 2000-07-13 Bruno Haible <haible@clisp.cons.org>
2189 * src/float/input/cl_F_read_stream.cc (number_char_p): Accept '_',
2190 used as precision marker for floats.
2191 Reported by Keith Briggs (in 1998) and Thomas Roessler.
2192 * src/integer/input/cl_I_read_stream.cc (number_char_p): Likewise.
2193 * src/rational/input/cl_RA_read_stream.cc (number_char_p): Likewise.
2194 * src/real/input/cl_R_read_stream.cc (number_char_p): Likewise.
2195 * src/complex/input/cl_N_read_stream.cc (number_char_p): Likewise.
2197 2000-06-22 Bruno Haible <haible@clisp.cons.org>
2199 * include/cl_object.h: Rename cl_word_size to cl_pointer_size.
2200 * include/cl_types.h (HAVE_FAST_LONGLONG): Also define on Irix6
2202 (cl_word_size): New macro.
2203 * src/float/sfloat/cl_SF.h: Use cl_pointer_size instead of
2206 2000-05-31 Bruno Haible <haible@clisp.cons.org>
2208 * tests/exam_I_floor.cc (integer_floor_tests): Add one more entry.
2209 From a sample that fails with gcc-2.95.2 on Sparc.
2210 * tests/exam_I_gcd.cc (integer_gcd_tests): Likewise.
2212 2000-05-30 Richard Kreckel <kreckel@ginac.de>
2214 * configure.in, autoconf/aclocal.m4 (CL_GMP_H_VERSION, CL_GMP_CHECK):
2216 * configure.in, include/cl_config.h.in (CL_VERSION, CL_VERSION_MINOR,
2217 CL_VERSION_PATCHLEVEL): New definitions.
2218 * autoconf/config.guess, autoconf/config.sub, autoconf/ltconfig,
2219 autoconf/ltmain.sh: updated from FSF (libtool 1.3.5, etc).
2220 * src/Makefile.in, configure.in: release-variables renamed from
2222 * configure.in: default to build both shared and static library
2223 (i.e. default to the most common behaviour).
2225 2000-05-29 Richard Kreckel <kreckel@ginac.de>
2227 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Added missing changequote
2228 environment around the patch of 2000-05-23.
2230 2000-05-29 Bruno Haible <haible@clisp.cons.org>
2232 * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
2233 Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
2235 2000-05-27 Richard Kreckel <kreckel@ginac.de>
2237 * src/float/lfloat/algebraic/cl_LF_sqrt.cc,
2238 src/base/digitseq/cl_DS_sqrt.cc: Readjusted break-even points.
2240 2000-05-24 Richard Kreckel <kreckel@ginac.de>
2242 * autoconf/config.*: Updated to new version from FSF
2243 (the new libtool wants this).
2244 * src/Makefile.in: added $(LDFLAGS) to link step.
2245 * src/base/digitseq/cl_2DS_div.cc, cl_2DS_recip.cc: Readjusted
2248 2000-05-23 Bruno Haible <haible@clisp.cons.org>
2250 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
2251 host_vendor, host_os correctly if $host has more than two hyphens.
2253 2000-05-19 Richard Kreckel <kreckel@ginac.de>
2255 * src/base/digitseq/cl_DS_mul.cc: Rearranged break-even points to
2256 better match present-day CPUs whenever GMP3 is used.
2257 * src/base/digitseq/cl_DS_div.cc: dto.
2258 * src/TUNING: Added comment about order of tuning.
2259 * configure, configure.in: Safer GMP3-detection.
2260 * INSTALL.generic: Clarified behaviour of --with-gmp.
2261 * autoconf/config.guess: updated from Clisp-2000-03-06 sources.
2263 2000-05-04 Richard Kreckel <kreckel@ginac.de>
2265 * gmp/: removed completely. From now on we are going to link
2266 externally against libgmp3.0 or above!
2267 * configure, configure.in, Makefile.in, */Makeflags: removed support
2268 of internal gmp 2.0.2, like $GMP_INCLUDES, which should be done by
2269 setting $CPPFLAGS instead.
2270 * Makefile.in: Added libtool inter-library dependency for -lgmp and
2271 conforming interface versioning (-version-info).
2272 * autoconf/ltconfig, autoconf/ltmain.sh: Updated to newer versions
2275 2000-02-22 Bruno Haible <haible@clisp.cons.org>
2277 * src/base/digitseq/cl_asm_mips_.cc: Starting at argument 5 the
2278 parameter passing was changed for the MIPS n32 ABI.
2280 2000-01-24 Richard Kreckel <kreckel@ginac.de>
2282 * gmp/*: Replaced the complete mpn sources with the ones from
2283 Debian since they are maintained while the ones from FSF
2284 aren't and there were problems on some architectures, PowerPC
2285 in particular. See the file gmp/README.CLN. This way the
2286 hard links in this directory have vanished, they were causing
2287 trouble for people working in AFS. This became necessary for
2288 Debian, because there it woudn't compile on PPC.
2290 2000-01-13 Richard Kreckel <kreckel@ginac.de>
2292 * Version 1.0.3 released.
2294 2000-01-13 Richard Kreckel <kreckel@ginac.de>
2296 * src/base/cl_macros.h (nonreturning_function): For egcs and newer
2297 use __attribute__ ((__noreturn__)) instead of the __volatile__
2299 (nonreturning): Remove macro.
2300 * include/*: Minor fixes to stop -ansi -pedantic from complaining.
2301 * include/cl_integer.h: (doublefactorial): New declaration.
2302 * src/integer/misc/combin/cl_I_doublefactorial.cc: New file.
2304 1999-12-18 Bruno Haible <haible@clisp.cons.org>
2306 * autoconf/acgeneral.m4 (AC_ARG_PROGRAM): Create conftestsed using
2308 * autoconf/ltconfig: Improve support for recent FreeBSD 3.
2309 * include/cl_GV.h (cl_GV_vectorops): Change return type from 'T' to
2310 'const T', to match definition in src/vector/cl_GV_number.cc.
2311 Reported by Duncan Simpson <dps@io.stargate.co.uk>.
2312 * gmp/mpn/Makefile.in (.S.lo): Use 'if', not '&&', because '&&' may
2313 yield return code 1.
2315 1999-09-07 Bruno Haible <haible@clisp.cons.org>
2317 * Version 1.0.2 released.
2319 1999-09-06 Bruno Haible <haible@clisp.cons.org>
2321 * src/rational/cl_RA.h (integerp, ratiop): Instead of returning a
2322 boolean expression, write alternatives ending with either
2323 "return cl_true;" or "return cl_false;". This way, g++ does a
2324 better job inlining it.
2325 * src/float/cl_F.h (longfloatp): Likewise.
2326 * src/real/cl_R.h (rationalp, integerp, floatp): Likewise.
2327 * src/complex/cl_C.h (realp, complexp): Likewise.
2329 1999-09-05 Bruno Haible <haible@clisp.cons.org>
2331 * include/cl_integer.h (cl_equal_hashcode): New declaration.
2332 * include/cl_rational.h (cl_equal_hashcode): New declaration.
2333 * include/cl_sfloat.h (cl_equal_hashcode): New declaration.
2334 * include/cl_ffloat.h (cl_equal_hashcode): New declaration.
2335 * include/cl_dfloat.h (cl_equal_hashcode): New declaration.
2336 * include/cl_lfloat.h (cl_equal_hashcode): New declaration.
2337 * include/cl_float.h (cl_equal_hashcode): New declaration.
2338 * include/cl_real.h (cl_equal_hashcode): New declaration.
2339 * include/cl_complex.h (cl_equal_hashcode): New declaration.
2340 * src/base/cl_N.h (equal_hashcode_low, equal_hashcode_one): New macros.
2341 * src/integer/misc/cl_I_eqhashcode.cc: New file.
2342 * src/rational/misc/cl_RA_eqhashcode.cc: New file.
2343 * src/float/sfloat/misc/cl_SF_eqhashcode.cc: New file.
2344 * src/float/ffloat/misc/cl_FF_eqhashcode.cc: New file.
2345 * src/float/dfloat/misc/cl_DF_eqhashcode.cc: New file.
2346 * src/float/lfloat/misc/cl_LF_eqhashcode.cc: New file.
2347 * src/float/misc/cl_F_eqhashcode.cc: New file.
2348 * src/real/misc/cl_R_eqhashcode.cc: New file.
2349 * src/complex/misc/cl_C_eqhashcode.cc: New file.
2350 * doc/cln.tex: Document `cl_equal_hashcode'.
2352 1999-09-05 Bruno Haible <haible@clisp.cons.org>
2354 * include/cl_ring.h (cl_number_ring_ops): Add `contains' member.
2355 (cl_number_ring): New class.
2356 (cl_specialized_number_ring<T>): Inherit from cl_number_ring.
2357 (instanceof): New function.
2358 * src/integer/ring/cl_I_ring.cc (cl_I_p): New function.
2359 * src/integer/misc/cl_I_as.cc (cl_I_p): Add comment.
2360 * src/rational/ring/cl_RA_ring.cc (cl_RA_p): New function.
2361 * src/rational/misc/cl_RA_as.cc (cl_RA_p): Add comment.
2362 * src/real/ring/cl_R_ring.cc (cl_R_p): New function.
2363 * src/real/misc/cl_R_as.cc (cl_R_p): Add comment.
2364 * src/complex/ring/cl_C_ring.cc (cl_N_p): New function.
2365 * src/complex/misc/cl_N_as.cc (cl_N_p): Add comment.
2366 * doc/cln.tex: Document `instanceof'.
2368 1999-09-05 Bruno Haible <haible@clisp.cons.org>
2370 * include/cl_rational.h (numerator, denominator): New declarations.
2371 * src/rational/elem/cl_RA_numerator.cc: New file.
2372 * src/rational/elem/cl_RA_denominator.cc: New file.
2373 * include/cl_integer.h (numerator, denominator): New inline functions.
2374 * doc/cln.tex: Document `numerator' and `denominator'.
2376 1999-09-05 Bruno Haible <haible@clisp.cons.org>
2378 * src/rational/algebraic/cl_RA_rootp.cc (rootp): Fix endless loop
2379 in the integer case.
2380 * src/rational/algebraic/cl_RA_rootp_I.cc (rootp): Likewise.
2382 1999-09-05 Bruno Haible <haible@clisp.cons.org>
2384 * include/cl_config.h.in: Support for sparc64 CPU.
2385 * include/cl_modules.h: Likewise.
2386 * include/cl_types.h: Likewise.
2387 * include/cl_object.h: Likewise.
2388 * include/cl_GV.h: Likewise.
2389 * src/Makefile.in: Likewise.
2390 * src/base/cl_alloca.h: Likewise.
2391 * src/base/cl_macros.h: Likewise.
2392 * src/base/cl_sysdep.h: Likewise.
2393 * src/base/cl_low.h: Likewise.
2394 * src/base/digitseq/cl_asm.h: Likewise.
2395 * src/base/digitseq/cl_asm_.cc: Likewise.
2396 * src/base/digitseq/cl_asm_sparc64.h: New file.
2397 * src/base/digitseq/cl_asm_sparc64_.cc: New file.
2398 * src/modinteger/cl_MI_int.h: Support for sparc64 CPU.
2399 * src/polynomial/elem/cl_UP_no_ring.cc: Likewise.
2400 * src/polynomial/elem/cl_UP_GF2.h: Likewise.
2401 * src/polynomial/elem/cl_asm_GF2.cc: Likewise.
2403 1999-09-04 Bruno Haible <haible@clisp.cons.org>
2405 * src/base/digitseq/cl_asm_sparc_.cc (orc2_loop_up, orc2_loop_down):
2406 Use the `orn' instruction.
2408 1999-08-14 Bruno Haible <haible@clisp.cons.org>
2410 Assume all platforms have <stdlib.h> and clock_t.
2411 * configure.in: Don't call CL_STDLIB_H and CL_CLOCK_T.
2412 * src/base/cl_base_config.h.in (CLOCK_T): Remove definition.
2413 * src/base/random/cl_random_from.cc: Use clock_t instead of CLOCK_T.
2414 * src/timing/cl_t_config.h.in (CLOCK_T): Remove definition.
2415 * src/timing/cl_t_current2.cc: Use clock_t instead of CLOCK_T.
2417 1999-07-18 Bruno Haible <haible@clisp.cons.org>
2419 * gmp/config.guess: Link to autoconf/config.guess.
2420 gmp/config.sub: Link to autoconf/config.sub.
2421 Needed for Win32 platforms.
2423 1999-07-17 Bruno Haible <haible@clisp.cons.org>
2425 * autoconf/aclocal.m4 (CL_CANONICAL_HOST_CPU): Distinguish "sparc" and
2426 "sparc64" according to the C compiler, not the uname result.
2428 1999-06-17 Bruno Haible <haible@clisp.cons.org>
2430 * src/base/digitseq/cl_asm_sparc_.cc (compare_loop_up): Fix
2431 COUNTER_LOOPS version, fortunately not used yet.
2433 * include/cl_modules.h: Prepare for gcc version 3.
2435 1999-06-12 Bruno Haible <haible@clisp.cons.org>
2437 * src/rational/elem/cl_RA_plus.cc, src/rational/elem/cl_RA_minus.cc:
2438 Change the last call from I_I_to_RT to I_I_to_RA.
2440 1999-06-09 Bruno Haible <haible@clisp.cons.org>
2442 * Version 1.0.1 released.
2444 1999-06-09 Bruno Haible <haible@clisp.cons.org>
2446 * src/integer/cl_I.h (pFN_maxlength_digits_at): Define also when
2449 1999-06-08 Bruno Haible <haible@clisp.cons.org>
2451 * autoconf/intparam.c (printf_underscored): Change argument type to
2453 * include/cl_modules.h (CL_OUTPUT_LABEL, CL_JUMP_TO): New macros.
2454 (CL_PROVIDE, CL_PROVIDE_END): Use them.
2455 * include/cl_string.h (cl_heap_string::operator new): Return 1, not 0.
2456 * include/cl_GV.h (cl_GV_inner<T>::operator new): Likewise.
2457 * src/base/ring/cl_no_ring.cc (dummy_canonhom, dummy_expt_pos): Don't
2458 cast a cl_I to void here. Works around a bug in g++-2.95.
2459 * src/complex/misc/cl_C_class.cc: Include "cl_C.h".
2460 * src/polynomial/elem/cl_UP_no_ring.cc (dummy_canonhom,
2461 dummy_expt_pos): Don't cast a cl_I to void here. Works around a bug
2463 * src/polynomial/elem/cl_asm_sparc_GF2.cc (DECLARE_FUNCTION): New
2465 * src/rational/misc/cl_RA_class.cc: Include "cl_RA.h".
2466 * src/vector/cl_GV_I.cc (cl_heap_GV_I_general::operator new,
2467 DEFINE_cl_heap_GV_I_bits): Return 1, not 0.
2468 * src/vector/cl_GV_number.cc (cl_heap_GV_number_general::operator new):
2471 1999-06-01 Bruno Haible <haible@clisp.cons.org>
2473 * autoconf/aclocal.m4 (CL_CANONICAL_HOST_CPU): Canonicalize alpha
2476 1999-05-29 Bruno Haible <haible@clisp.cons.org>
2478 * src/base/digitseq/cl_asm_i386_.cc (DECLARE_FUNCTION): Treat
2479 OpenBSD like NetBSD.
2480 * src/base/digitseq/cl_asm_sparc_.cc (DECLARE_FUNCTION): Likewise.
2481 * src/base/digitseq/cl_asm_m68k_.cc (DECLARE_FUNCTION): Treat
2482 OpenBSD like NetBSD, and Linux/ELF like SVR4.
2484 1999-05-16 Bruno Haible <haible@clisp.cons.org>
2486 * src/base/cl_low.h (integerlength32) [__rs6000__]: Use old assembler
2487 syntax on AIX systems and new assembler syntax on non-AIX systems.
2489 1999-05-01 Bruno Haible <haible@clisp.cons.org>
2491 * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
2492 version from GNU CVS.
2494 1999-04-24 Bruno Haible <haible@clisp.cons.org>
2496 * src/integer/bitwise/cl_I_logand.cc (logand): Optimize the case when
2497 either operand is a positive fixnum, O(1) instead of O(N).
2498 * src/integer/bitwise/cl_I_lognand.cc (lognand): Likewise.
2499 * src/integer/bitwise/cl_I_logandc2.cc (logandc2): Likewise for the
2502 1999-04-14 Bruno Haible <haible@clisp.cons.org>
2504 * autoconf/aclocal.m4 (CL_GLOBAL_CONSTRUCTORS): Add check whether
2505 ctor/dtor needs to be exported.
2506 * include/cl_config.h.in (CL_NEED_GLOBALIZE_CTORDTOR): New macro.
2507 * include/cl_modules.h (CL_GLOBALIZE_JUMP_LABEL): Renamed from
2509 (CL_GLOBALIZE_LABEL): New macro.
2510 (CL_GLOBALIZE_CTORDTOR_LABEL): Renamed from CL_GLOBALIZE_ASM_LABEL.
2511 (CL_PROVIDE): Update.
2513 1999-04-12 Bruno Haible <haible@clisp.cons.org>
2515 * src/Makefile.in ($(ASMFILES_S)): On HPPA, ignore preprocessing
2516 errors ("unterminated string or character constant").
2517 ($(ASMFILES_LO)): On HPPA, try with various settings of
2518 COMPILER_PATH, in order to try /usr/ccs/bin/as and /bin/as.
2520 1999-04-11 Bruno Haible <haible@clisp.cons.org>
2522 * INSTALL: Mention gmp problems on MIPS.
2523 * doc/cln.tex: Likewise.
2525 1999-03-24 Mumit Khan <khan@xraylith.wisc.edu>
2527 * src/Makefile.in (SUBDIRS): Filter out CVS and RCS directories from
2529 * include/cl_modules.h (CL_GLOBALIZE_LABEL): Define for Win32.
2530 (CL_GLOBALIZE_ASM_LABEL): New macro.
2531 (CL_PROVIDE): Use it.
2532 * src/base/random/cl_random_from.cc: Handle WIN32.
2533 * src/timing/cl_t_current.cc: Likewise.
2535 1999-03-15 Bruno Haible <haible@clisp.cons.org>
2537 * autoconf/intparam.c (main7): Use %lX instead of %X for a `long'.
2538 (main8): Adapt for C++.
2540 1999-03-09 Bruno Haible <haible@clisp.cons.org>
2542 * INSTALL: Mention egcs-1.1 problems on Sparc.
2543 * doc/cln.tex: Likewise.
2545 1999-03-08 Bruno Haible <haible@clisp.cons.org>
2547 * autoconf/aclocal.m4 (CL_FPU_CONTROL): Fix the "checking for"
2550 1999-02-25 Bruno Haible <haible@clisp.cons.org>
2552 * autoconf/aclocal.m4: In test programs, declare `int main()', not
2555 * lidia-interface/src/interfaces/integers/cln/bigint.c
2556 (bigint_to_string): Fix for negative arguments.
2558 * src/base/cl_low.h: Check for `__sparc__', not `SPARC'.
2559 * src/base/cl_alloca.h: Likewise.
2561 * src/base/cl_low.h: Eliminate CLISP style "# " comments.
2562 * src/base/digitseq/cl_asm_arm_.cc,
2563 src/base/digitseq/cl_asm_mips_.cc,
2564 src/float/dfloat/elem/cl_DF_mul.cc: Likewise.
2566 * src/modinteger/cl_MI_pow2.h,
2567 src/modinteger/cl_MI_pow2m1.h,
2568 src/modinteger/cl_MI_pow2p1.h: Workaround g++-2.7.2 inlining bug.
2570 1999-01-18 Bruno Haible <haible@clisp.cons.org>
2572 * autoconf/acgeneral.m4,
2573 autoconf/acspecific.m4: Upgrade to autoconf-2.13.
2574 * autoconf/config.guess, autoconf/config.sub: Likewise.
2575 * autoconf/aclocal.m4 (CL_ALLOCA): Test for _MSC_VER and alloca being
2576 a macro. Use ${ac_objext}.
2577 * src/base/cl_macros.h (alloca): Put _MSC_VER test before the others,
2578 conforming with CL_ALLOCA.
2580 1999-01-12 Bruno Haible <haible@clisp.cons.org>
2582 * Version 1.0 released.