You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

712 lines
18 KiB

Extend the exponent range from 32 bits to 64 bits on selected platforms. * include/cln/number.h: Add signatures for operations with long long. * include/cln/complex_class.h: Likewise. * include/cln/real_class.h: Likewise. * include/cln/real.h: Likewise. * include/cln/rational_class.h: Likewise. * include/cln/rational.h: Likewise. * include/cln/integer_class.h: Likewise. * include/cln/integer.h: Likewise. * include/cln/float.h: Likewise. * include/cln/lfloat.h: Likewise. * include/cln/types.h (sintE and uintE): New types for exponents. * include/cln/*float.h: Use the new types for exponents. * include/cln/floatformat.h (float_format_t): Make underlying type compatible with sintE. * doc/cln.tex: Document changed float_exponent return value. * src/float/cl_F.h: Likewise. * src/float/ffloat/misc/cl_FF_exponent.cc: Likewise. * src/float/input/cl_F_read.cc: Likewise. * src/float/lfloat/cl_LF.h: Likewise. * src/float/lfloat/cl_LF_impl.h: Likewise. * src/float/lfloat/algebraic/cl_LF_sqrt.cc: Likewise. * src/float/lfloat/elem/cl_LF_1plus.cc: Likewise. * src/float/lfloat/elem/cl_LF_I_div.cc: Likewise. * src/float/lfloat/elem/cl_LF_I_mul.cc: Likewise. * src/float/lfloat/elem/cl_LF_compare.cc: Likewise. * src/float/lfloat/elem/cl_LF_div.cc: Likewise. * src/float/lfloat/elem/cl_LF_from_I.cc: Likewise. * src/float/lfloat/elem/cl_LF_fround.cc: Likewise. * src/float/lfloat/elem/cl_LF_ftrunc.cc: Likewise. * src/float/lfloat/elem/cl_LF_futrunc.cc: Likewise. * src/float/lfloat/elem/cl_LF_mul.cc: Likewise. * src/float/lfloat/elem/cl_LF_scale.cc: Likewise. * src/float/lfloat/elem/cl_LF_scale_I.cc: Likewise. * src/float/lfloat/elem/cl_LF_square.cc: Likewise. * src/float/lfloat/elem/cl_LF_to_I.cc: Likewise. * src/float/lfloat/misc/cl_LF_decode.cc: Likewise. * src/float/lfloat/misc/cl_LF_exponent.cc: Likewise. * src/float/lfloat/misc/cl_LF_idecode.cc: Likewise. * src/float/lfloat/misc/cl_LF_shortenrel.cc: Likewise. * src/float/lfloat/misc/cl_LF_shortenwith.cc: Likewise. * src/float/misc/cl_F_decode.cc: Likewise. * src/float/misc/cl_F_exponent.cc: Likewise. * src/float/misc/cl_F_shortenrel.cc: Likewise. * src/float/misc/cl_float_format.cc: Likewise. * src/float/output/cl_F_dprint.cc: Likewise. * src/float/sfloat/misc/cl_SF_exponent.cc: Likewise. * src/float/transcendental/cl_F_atanhx.cc: Likewise. * src/float/transcendental/cl_F_atanx.cc: Likewise. * src/float/transcendental/cl_F_cosh.cc: Likewise. * src/float/transcendental/cl_F_expx.cc: Likewise. * src/float/transcendental/cl_F_lnx.cc: Likewise. * src/float/transcendental/cl_F_sinhx.cc: Likewise. * src/float/transcendental/cl_F_sinx.cc: Likewise. * src/float/transcendental/cl_LF_pi.cc: Likewise. * src/integer/cl_I.h: Likewise. * src/complex/algebraic/cl_LF_hypot.cc: Likewise. * src/complex/elem/division/cl_C_LF_recip.cc: Likewise. * src/float/dfloat/misc/cl_DF_exponent.cc: Likewise. * src/integer/conv/cl_I_from_Q2.cc: Added. * src/base/cl_low.h (isqrtC): New function, for 64 bit falls back to... * src/base/low/cl_low_isqrt.cc (isqrt): ...this new implementation. * src/base/cl_macros.h (bitc): Make sure 64 bit is used if required by exponent operations. * examples/pi.cc: Support more than 646456614 decimal digits.
18 years ago
Extend the exponent range from 32 bits to 64 bits on selected platforms. * include/cln/number.h: Add signatures for operations with long long. * include/cln/complex_class.h: Likewise. * include/cln/real_class.h: Likewise. * include/cln/real.h: Likewise. * include/cln/rational_class.h: Likewise. * include/cln/rational.h: Likewise. * include/cln/integer_class.h: Likewise. * include/cln/integer.h: Likewise. * include/cln/float.h: Likewise. * include/cln/lfloat.h: Likewise. * include/cln/types.h (sintE and uintE): New types for exponents. * include/cln/*float.h: Use the new types for exponents. * include/cln/floatformat.h (float_format_t): Make underlying type compatible with sintE. * doc/cln.tex: Document changed float_exponent return value. * src/float/cl_F.h: Likewise. * src/float/ffloat/misc/cl_FF_exponent.cc: Likewise. * src/float/input/cl_F_read.cc: Likewise. * src/float/lfloat/cl_LF.h: Likewise. * src/float/lfloat/cl_LF_impl.h: Likewise. * src/float/lfloat/algebraic/cl_LF_sqrt.cc: Likewise. * src/float/lfloat/elem/cl_LF_1plus.cc: Likewise. * src/float/lfloat/elem/cl_LF_I_div.cc: Likewise. * src/float/lfloat/elem/cl_LF_I_mul.cc: Likewise. * src/float/lfloat/elem/cl_LF_compare.cc: Likewise. * src/float/lfloat/elem/cl_LF_div.cc: Likewise. * src/float/lfloat/elem/cl_LF_from_I.cc: Likewise. * src/float/lfloat/elem/cl_LF_fround.cc: Likewise. * src/float/lfloat/elem/cl_LF_ftrunc.cc: Likewise. * src/float/lfloat/elem/cl_LF_futrunc.cc: Likewise. * src/float/lfloat/elem/cl_LF_mul.cc: Likewise. * src/float/lfloat/elem/cl_LF_scale.cc: Likewise. * src/float/lfloat/elem/cl_LF_scale_I.cc: Likewise. * src/float/lfloat/elem/cl_LF_square.cc: Likewise. * src/float/lfloat/elem/cl_LF_to_I.cc: Likewise. * src/float/lfloat/misc/cl_LF_decode.cc: Likewise. * src/float/lfloat/misc/cl_LF_exponent.cc: Likewise. * src/float/lfloat/misc/cl_LF_idecode.cc: Likewise. * src/float/lfloat/misc/cl_LF_shortenrel.cc: Likewise. * src/float/lfloat/misc/cl_LF_shortenwith.cc: Likewise. * src/float/misc/cl_F_decode.cc: Likewise. * src/float/misc/cl_F_exponent.cc: Likewise. * src/float/misc/cl_F_shortenrel.cc: Likewise. * src/float/misc/cl_float_format.cc: Likewise. * src/float/output/cl_F_dprint.cc: Likewise. * src/float/sfloat/misc/cl_SF_exponent.cc: Likewise. * src/float/transcendental/cl_F_atanhx.cc: Likewise. * src/float/transcendental/cl_F_atanx.cc: Likewise. * src/float/transcendental/cl_F_cosh.cc: Likewise. * src/float/transcendental/cl_F_expx.cc: Likewise. * src/float/transcendental/cl_F_lnx.cc: Likewise. * src/float/transcendental/cl_F_sinhx.cc: Likewise. * src/float/transcendental/cl_F_sinx.cc: Likewise. * src/float/transcendental/cl_LF_pi.cc: Likewise. * src/integer/cl_I.h: Likewise. * src/complex/algebraic/cl_LF_hypot.cc: Likewise. * src/complex/elem/division/cl_C_LF_recip.cc: Likewise. * src/float/dfloat/misc/cl_DF_exponent.cc: Likewise. * src/integer/conv/cl_I_from_Q2.cc: Added. * src/base/cl_low.h (isqrtC): New function, for 64 bit falls back to... * src/base/low/cl_low_isqrt.cc (isqrt): ...this new implementation. * src/base/cl_macros.h (bitc): Make sure 64 bit is used if required by exponent operations. * examples/pi.cc: Support more than 646456614 decimal digits.
18 years ago
19 years ago
24 years ago
24 years ago
24 years ago
24 years ago
24 years ago
25 years ago
  1. 2006-mm-dd, version 1.2.0
  2. =========================
  3. Implementation changes
  4. ----------------------
  5. * Added support for huge numbers...
  6. * Dropped the cln-config script. Please use pkg-config instead.
  7. 2006-08-08, version 1.1.13
  8. ==========================
  9. * Compilation fixes for 64-bit brokenness introduced in last release.
  10. 2006-08-06, version 1.1.12
  11. ==========================
  12. Implementation changes
  13. ----------------------
  14. * Fix rare assertion when printing quite large floats.
  15. Other changes
  16. -------------
  17. * Compilation fixes for several platforms: *BSD, Intel Mac, and MinGW.
  18. 2005-11-23, version 1.1.11
  19. ==========================
  20. Algorithmic changes
  21. -------------------
  22. * Considerably improved performance of number input.
  23. 2005-10-22, version 1.1.10
  24. ==========================
  25. Implementation changes
  26. ----------------------
  27. * Removed the vptr of modular integer and univariate polynomial
  28. classes in order to fix some crashes in that sector of CLN. Code
  29. using this needs to be recompiled.
  30. * Many more operator signatures make the integration of CLN types with
  31. float/double easier.
  32. Other changes
  33. -------------
  34. * Several compilation fixes.
  35. * Made it possible to cross-compile CLN.
  36. 2004-11-03, version 1.1.9
  37. =========================
  38. Algorithmic changes
  39. -------------------
  40. * Input of numbers in bases 2, 4, 8, 16 and 32 is now done in linear bit
  41. complexity as opposed to O(N^2). Useful for all kinds of persistency.
  42. Implementation changes
  43. ----------------------
  44. * Fixed several bugs in the integer input and output routines that could be
  45. blamed for random crashes in the following cases: output in base 32 for
  46. quite large numbers, input in base 2 for fixnums and input in base 3 for
  47. fixnums on a 64 bit target.
  48. * Fixed crash when radix specifiers were used in input streams.
  49. * Speed up on x86_64 and ia64 by adding some inline assembly.
  50. Other changes
  51. -------------
  52. * Fixes for compilation on MacOS X and little endian Mips.
  53. 2004-07-01, version 1.1.8
  54. =========================
  55. Implementation changes
  56. ----------------------
  57. * Fix bug in log(a,b) when b is 1/n.
  58. * Fix crash in shared library on AMD64.
  59. Other changes
  60. -------------
  61. * Fixes for some language conformance issues.
  62. 2004-05-02, version 1.1.7
  63. =========================
  64. Implementation changes
  65. ----------------------
  66. * Fixed two corner case bugs in cl_LF multiplication and sqrt.
  67. * Workaround GCC 3.[123] compiler bug.
  68. * Parallel build should work reliably now.
  69. 2004-01-01, version 1.1.6
  70. =========================
  71. Functional changes
  72. ------------------
  73. * New function
  74. `sintL ldegree(const cl_UP& x)'.
  75. (Suggested by Munagala Ramanath.)
  76. Implementation changes
  77. ----------------------
  78. * Fixed a bug in polynomial subtraction.
  79. (Reported by Munagala Ramanath.)
  80. Other changes
  81. -------------
  82. * Provide a package control file cln.pc.
  83. * Updated infrastructure to autoconf-2.57.
  84. * Fixed compilation issues with GCC-3.4 prereleases and on Mac OSX.
  85. 2002-05-28, version 1.1.5
  86. =========================
  87. Other changes
  88. -------------
  89. * Fix compilation issues with GCC-3.1.
  90. 2002-01-04, version 1.1.4
  91. =========================
  92. Other changes
  93. -------------
  94. * Fix compilation issues with GMP-4.0 and on IBM s390.
  95. * Updated infrastructure to autoconf-2.52.
  96. 2001-11-05, version 1.1.3
  97. =========================
  98. Implementation changes
  99. ----------------------
  100. * Fix a computation error of sin and sinh for small arguments.
  101. (Reported by Christopher Kennedy.)
  102. * Module ordering works with gcc-3.0 -fuse-cxa-atexit now.
  103. * -DNO_ASM works properly on Sparc.
  104. 2001-07-25, version 1.1.2
  105. Implementation changes
  106. ----------------------
  107. * Minor cleanups and portability issues.
  108. (No need to upgrade if you have been happy so far.)
  109. 2001-05-31, version 1.1.1
  110. =========================
  111. Implementation changes
  112. ----------------------
  113. * Minor cleanups for GCC 3.0 and libstdc++-v3.
  114. * Fixes several little bugs and portability issues.
  115. 2000-12-14, version 1.1.0
  116. =========================
  117. Functional changes
  118. ------------------
  119. * ISO/IEC 14882 fashion adjustments:
  120. Put everything into namespace cln. All fundamental data types still
  121. carry their old names. Other non-macro identifiers are now written as
  122. cln::foo instead of cl_foo, except where the cl_ comes from a data type
  123. (as in cl_I_to_int()). Headers are installed into a separate
  124. directory, #include <cln/foo.h> instead of <cl_foo.h>. Applications
  125. must be manually ported to the new style. We apologize for the
  126. inconvenience.
  127. Implementation changes
  128. ----------------------
  129. * Removed internal copy of mpn subdirectory tree from libgmp-2.0.2.
  130. Configuring with --with-gmp now relies on an installed libgmp library
  131. version 3 or above. We recommend libgmp-3.1 or newer.
  132. * Adjusted several break-even points to make better use of a faster libgmp and
  133. better match present-day CPUs.
  134. * Fix several errors for architectures with 64-bit wide words.
  135. (Others than Alpha, which worked already.)
  136. * Fix compilation errors with current GCC-3.0 snapshots.
  137. Other changes
  138. -------------
  139. * Added package tools: script cln-config and autoconf macro AC_PATH_CLN
  140. (in file cln.m4).
  141. 2000-01-13, version 1.0.3
  142. =========================
  143. Functional changes
  144. ------------------
  145. * New function
  146. `cl_I doublefactorial (uintL n)'.
  147. Implementation changes
  148. ----------------------
  149. * Fix several little configuration errors.
  150. * Fix some compilation errors with gcc-2.96 prereleases.
  151. 1999-09-07, version 1.0.2
  152. =========================
  153. Functional changes
  154. ------------------
  155. * New functions
  156. `cl_I numerator (const cl_RA&)'
  157. `cl_I denominator (const cl_RA&)'.
  158. Suggested by Richard Kreckel and Sylvain Pion.
  159. * New function `cl_equal_hashcode' for the classes cl_N, cl_R, cl_RA, cl_I,
  160. cl_F, cl_SF, cl_FF, cl_DF, cl_LF.
  161. Suggested by Richard Kreckel.
  162. Implementation changes
  163. ----------------------
  164. * Fix an endless loop when either of the functions
  165. `cl_boolean rootp (const cl_RA&, uintL, cl_RA*)',
  166. `cl_boolean rootp (const cl_RA&, const cl_I&, cl_RA*)'
  167. was called with an integer argument. Thanks to Richard Kreckel.
  168. * Fix a bug in the addition and subtraction of rational numbers which could
  169. cause unnormalized rational numbers like 3/1 to be created.
  170. 1999-06-09, version 1.0.1
  171. =========================
  172. Algorithmic changes
  173. -------------------
  174. * Speed up the functions `logand', `lognand', `logandc2'.
  175. Implementation changes
  176. ----------------------
  177. * Fix compilation errors with gcc-2.7.2, egcs-1.1.2 and gcc-2.95.
  178. * Fix compilation errors on HPPA, MIPS, some versions of DEC Alpha, OpenBSD,
  179. and SPARC with LiDIA.
  180. * Fix compilation errors on Win32. Thanks to Mumit Khan.
  181. 1999-01-12, version 1.0
  182. =======================
  183. Functional changes
  184. ------------------
  185. * New include files, containing I/O functions:
  186. <cl_integer_io.h>
  187. <cl_rational_io.h>
  188. <cl_float_io.h>
  189. <cl_sfloat_io.h> <cl_ffloat_io.h> <cl_dfloat_io.h> <cl_lfloat_io.h>
  190. <cl_real_io.h>
  191. <cl_complex_io.h>
  192. The file <cl_io.h> now contains only I/O functions for characters and
  193. C integers.
  194. * To access the base ring of a univariate polynomial ring, now use
  195. `R->basering()' instead of `R->basering'.
  196. * Implement `plusp', `max', `min' for the classes cl_F, cl_SF, cl_FF, cl_DF,
  197. cl_LF, cl_RA, cl_I.
  198. * Implement `abs' for the class cl_RA.
  199. * Replaced `read_number' with specialized functions `read_complex',
  200. `read_real', `read_float', `read_rational', `read_integer'.
  201. * Replaced the functions
  202. `void fprint (cl_ostream stream, int x)'
  203. `void fprint (cl_ostream stream, unsigned int x)'
  204. `void fprint (cl_ostream stream, long x)'
  205. `void fprint (cl_ostream stream, unsigned long x)'
  206. with
  207. `void fprintdecimal (cl_ostream stream, int x)'
  208. `void fprintdecimal (cl_ostream stream, unsigned int x)'
  209. `void fprintdecimal (cl_ostream stream, long x)'
  210. `void fprintdecimal (cl_ostream stream, unsigned long x)'
  211. Algorithmic changes
  212. -------------------
  213. * The function `cl_I xgcd (const cl_I& a, const cl_I& b, cl_I* u, cl_I* v)'
  214. now normalizes the resulting u and v to be of minimum absolute value.
  215. (Suggested by the LiDIA group.)
  216. * The conversion from string to cl_F, cl_R, cl_N now chooses the format of
  217. the resulting float depending on the number of significant digits present
  218. in the input string.
  219. * Speed up the functions
  220. `cl_R operator* (const cl_RA&, const cl_LF&)'
  221. `cl_R operator* (const cl_LF&, const cl_RA&)'
  222. `cl_R operator/ (const cl_RA&, const cl_LF&)'
  223. `cl_LF operator/ (const cl_LF&, const cl_RA&)'
  224. Implementation changes
  225. ----------------------
  226. * Fix for `cl_I ash (const cl_I& x, const cl_I& n)' when |n| is between
  227. 2^29 and 2^37.
  228. (Reported by Thomas Papanikolaou.)
  229. * Fixed a memory leak in the long-float truncate function.
  230. (Reported by Keith Briggs.)
  231. * Fixed a memory leak in the modular integer exponentiation.
  232. * Reduced the stack space consumption. The default stack size (typically
  233. 8 MB on Unix) should now be sufficient in order to run all CLN programs.
  234. * Portability fixes for m68k platforms.
  235. (Reported and fixed by Roman Hodek.)
  236. Other changes
  237. -------------
  238. * Restructured the sources. The subpackages
  239. - base
  240. - base + integer
  241. - base + integer + rational
  242. - base + integer + rational + float
  243. - base + integer + rational + float + real
  244. - base + integer + rational + float + real + complex
  245. - base + integer + modinteger
  246. are now self-contained.
  247. * The configuration script can be called with option `--enable-shared',
  248. to build CLN as a shared library.
  249. * Updated the LiDIA interface.
  250. 1998-05-07, version 0.98
  251. ========================
  252. Implementation changes
  253. ----------------------
  254. * Portability fixes for 64-bit platforms like DEC Alpha.
  255. (Reported by John Cremona and Thomas Papanikolaou.)
  256. 1998-02-27
  257. ==========
  258. Other changes
  259. -------------
  260. * Portability fixes for new ISO/ANSI C++ compilers.
  261. * Updated the LiDIA interface for LiDIA version 1.3 and fixed a couple of
  262. bugs.
  263. 1997-09-06
  264. ==========
  265. Implementation changes
  266. ----------------------
  267. * Portability fix for i686 platforms.
  268. (Reported by Michael Pfeifer.)
  269. 1997-09-01
  270. ==========
  271. Functional changes
  272. ------------------
  273. * New include files:
  274. <cl_ring.h>, declaring general rings,
  275. <cl_GV.h>, <cl_SV.h>, defining vectors,
  276. <cl_univpoly.h>, defining univariate polynomial rings.
  277. Algorithmic changes
  278. -------------------
  279. * Speed up the internal computation of ln(2) and ln(10) by about 20%.
  280. * Speed up the computation of exp (for 1000 digits or more) by about 10%.
  281. Implementation changes
  282. ----------------------
  283. * Portability fix for 64-bit platforms like DEC Alpha:
  284. Fixed a bug: endless loop in `sqrt' for large precision.
  285. (Reported by Blake Jones.)
  286. * Portability fix for RS/6000 platforms.
  287. 1997-02-21
  288. ==========
  289. Algorithmic changes
  290. -------------------
  291. * Speed up the computation of the elementary transcendental functions:
  292. exp, sinh, cosh, asinh, atanh (for 100 digits) by about 30%,
  293. log (for 100 digits) by about 25%,
  294. sin, cos (for 1000 or 10000 digits) by about 20%,
  295. asin, acos, atan (for 1000 digits) by about 25%.
  296. Implementation changes
  297. ----------------------
  298. * Portability fix for SunOS 4 and other BSD platforms.
  299. 1997-01-31
  300. ==========
  301. Algorithmic changes
  302. -------------------
  303. * Fixed a bug: endless recursion in `cl_boolean sqrtp (const cl_RA&, cl_RA*)'.
  304. * Fixed a bug: Only the first 85% of the digits returned by `cl_eulerconst'
  305. for moderate precision (< 11370 digits) were correct.
  306. (Reported by Thomas Papanikolaou.)
  307. Implementation changes
  308. ----------------------
  309. * Fix static initialization order bug. Requires g++ 2.7.0 or newer
  310. (g++ 2.8.0 or newer on HPPA).
  311. * New method `debug_print()', for pretty printing of CLN objects, intended
  312. to be called from the debugger.
  313. 1997-01-07
  314. ==========
  315. Functional changes
  316. ------------------
  317. * New functions `float cl_float_approx (const cl_R&)',
  318. `double cl_double_approx (const cl_R&)'
  319. for converting a real number to a C `float' or `double'.
  320. Algorithmic changes
  321. -------------------
  322. * Speed up `cl_zeta' using Cohen-Villegas-Zagier convergence acceleration.
  323. Implementation changes
  324. ----------------------
  325. * New function `cl_print', for pretty printing of CLN objects, intended to be
  326. called from the debugger.
  327. * Portability fixes for 64-bit platforms like DEC Alpha.
  328. 1996-11-29
  329. ==========
  330. Functional changes
  331. ------------------
  332. * New include files:
  333. <cl_string.h>, defining strings,
  334. <cl_symbol.h>, defining symbols,
  335. <cl_proplist.h>, defining property lists,
  336. <cl_condition.h>, defining conditions/exceptions.
  337. * New functions `cl_F cl_catalanconst ()',
  338. `cl_F cl_catalanconst (const cl_F&)',
  339. `cl_F cl_catalanconst (cl_float_format_t)'
  340. which return Catalan's constant.
  341. (Suggested by Thomas Papanikolaou.)
  342. * New functions `cl_F cl_zeta (int s)',
  343. `cl_F cl_zeta (int s, const cl_F&)',
  344. `cl_F cl_zeta (int s, cl_float_format_t)'
  345. which return the Riemann zeta function at an integral point s>1.
  346. * New functions `cl_F cl_exp1 ()',
  347. `cl_F cl_exp1 (const cl_F&)',
  348. `cl_F cl_exp1 (cl_float_format_t)'
  349. which return e = exp(1).
  350. * New function `cl_I binomial (uintL n, uintL k)' which returns the
  351. binomial coefficient (n choose k).
  352. * New functions `int cl_I_to_int (const cl_I&)',
  353. `unsigned int cl_I_to_uint (const cl_I&)',
  354. `long cl_I_to_long (const cl_I&)',
  355. `unsigned long cl_I_to_ulong (const cl_I&)'
  356. for converting an integer to a C `int' or `long'.
  357. * New functions `float cl_float_approx (const cl_I&)',
  358. `float cl_float_approx (const cl_RA&)',
  359. `double cl_double_approx (const cl_I&)',
  360. `double cl_double_approx (const cl_RA&)'
  361. for converting a rational number to a C `float' or `double'.
  362. Implementation changes
  363. ----------------------
  364. * Moved the sources to subdirectories.
  365. (Suggested by J�rg Arndt.)
  366. Other changes
  367. -------------
  368. * New benchmark for better comparing LiDIA, Pari and CLN.
  369. * Added an interface to LiDIA, allows using CLN as a replacement of libI.
  370. (Suggested by Thomas Papanikolaou.)
  371. * Added an ILOG Talk interface, for interactive use of the library.
  372. 1996-10-13
  373. ==========
  374. Functional changes
  375. ------------------
  376. * New include file <cl_modinteger.h>, defining modular integer rings.
  377. * New functions `cl_F cl_eulerconst ()', `cl_F cl_eulerconst (const cl_F&)',
  378. `cl_F cl_eulerconst (cl_float_format_t)' which return Euler's constant.
  379. Algorithmic changes
  380. -------------------
  381. * Speed up square root of large numbers by use of Newton's algorithm.
  382. * Speed up multiplication and division of large long-floats by small integers.
  383. * Speed up the computation of pi, e, exp, log, sin, cos, tan, sinh, cosh, tanh,
  384. asin, acos, atan, asinh, acosh, atanh.
  385. All of them are now computed with asymptotically fast algorithms, of
  386. bit complexity O(log(N)^2*M(N)) = O(N^(1+epsilon)) for N digits.
  387. * Fixed several bugs in the transcendental functions routines. In particular,
  388. the `log' function went into an endless loop.
  389. * Fixed a bug: The cl_I -> cl_DF and cl_I -> cl_LF conversions didn't work
  390. correctly for negative integers.
  391. 1996-09-08
  392. ==========
  393. Functional changes
  394. ------------------
  395. * New include file <cl_numtheory.h>, containing number theoretic functions,
  396. for now only the Jacobi symbol.
  397. Algorithmic changes
  398. -------------------
  399. * Speed up squaring of large numbers by 30%.
  400. * Speed up division of large numbers by use of Newton's algorithm. The
  401. improvement is noticeable for numbers with at least about 1000 words =
  402. 32000 bits = 10000 decimal digits.
  403. * Speed up the binary-to-decimal conversion of large numbers by use of
  404. a divide-and-conquer method. The improvement is noticeable for numbers
  405. of at least 1250 words = 40000 bits = 12000 decimal digits.
  406. * Fixed a bug: The functions `cl_boolean minusp (const type&)' and
  407. `cl_boolean zerop (const type&)' were missing for type=cl_I and type=cl_RA.
  408. * Fixed a bug: The function `cl_boolean logtest (const cl_I&, const cl_I&)'
  409. didn't work correctly if both arguments were bignums.
  410. * Fixed a bug: The function `cl_I mod (const cl_I&, const cl_I&)', when called
  411. as `mod(-n*m,m)' (n>0), returned m instead of 0.
  412. * Fixed a bug: The function `uintL power2p (const cl_I&)' returned wrong
  413. values for arguments x = 2^n, n >= 29.
  414. Implementation changes
  415. ----------------------
  416. * Speed up CLN by using the low-level addition/subtraction, shift and
  417. multiplication loops from GNU gmp-2.0.2.
  418. * Fixed a severe reference counting bug in the constructors
  419. `type::type (const long)' and `type::type (const unsigned long)'
  420. for type=cl_number, type=cl_N, type=cl_RA, type=cl_I that most often
  421. caused a core dump.
  422. * CLN's word sequences can be chosen to be stored big-endian in memory
  423. (like it was up to now) or little-endian (needed for interfacing to GMP).
  424. 1996-05-20
  425. ==========
  426. Functional changes
  427. ------------------
  428. * New include file <cl_timing.h>, contains timing facilities.
  429. Algorithmic changes
  430. -------------------
  431. * Speed up the multiplication of large numbers by use of an FFT based
  432. algorithm (Sch�nhage-Strassen). The improvement is noticeable when both
  433. factors have at least 1250 words = 40000 bits = 12000 decimal digits.
  434. * Speed up the functions `cl_I gcd (const cl_I&, const cl_I&)' and
  435. `cl_I xgcd (const cl_I&, const cl_I&, cl_I*, cl_I*)' by a factor
  436. of 1.5. Simple trick.
  437. * Speed up the function `cl_boolean sqrtp (const cl_I&, cl_I*)' using a
  438. trick from Henri Cohen.
  439. * Fixed an endless loop in the function `uint32 gcd (uint32, uint32)'
  440. which occurred when one of the arguments is zero.
  441. * Fixed an endless loop in the function `cl_I factorial (uintL)'.
  442. Implementation changes
  443. ----------------------
  444. * <cl_io.h> now uses iostreams by default instead of stdio FILE pointers.
  445. (Reported by Tito Flagella.)
  446. * Fixed linking error when compiling without -O.
  447. (Reported by Tito Flagella.)
  448. * Fixed syntax error in <cl_input.h>.
  449. (Reported by Tito Flagella.)
  450. * Fixed syntax errors in src/cl_DS.h and src/cl_FF_plus.h.
  451. (Reported by Marcus Daniels.)
  452. * More portability fixes.
  453. * Configuration now supports the --srcdir option.
  454. (Reported by Marcus Daniels.)
  455. 1996-01-03
  456. ==========
  457. * Compiles well on Sparc, using gcc.
  458. * Mail to beta testers.
  459. 1995-12-06
  460. ==========
  461. * Compiles well on Linux, using gcc.