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.

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