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.

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