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.

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