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.

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