Browse Source

* src/base/digitseq/cl_DS_div.cc (cl_recip_suitable): uintC arguments.

master
Richard Kreckel 18 years ago
parent
commit
38b03c332c
  1. 4
      ChangeLog
  2. 4
      src/base/digitseq/cl_DS_div.cc

4
ChangeLog

@ -1,3 +1,7 @@
2007-08-02 Richard B. Kreckel <kreckel@ginac.de>
* src/base/digitseq/cl_DS_div.cc (cl_recip_suitable): uintC arguments.
2007-08-01 Richard B. Kreckel <kreckel@ginac.de> 2007-08-01 Richard B. Kreckel <kreckel@ginac.de>
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in * */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in

4
src/base/digitseq/cl_DS_div.cc

@ -58,7 +58,7 @@ namespace cln {
// Break-even-point, should be acceptable for both architectures. // Break-even-point, should be acceptable for both architectures.
// When in doubt, prefer to choose the standard algorithm. // When in doubt, prefer to choose the standard algorithm.
#if CL_USE_GMP #if CL_USE_GMP
static inline bool cl_recip_suitable (uintL m, uintL n) // m > n
static inline bool cl_recip_suitable (uintC m, uintC n) // m > n
{ if (n < 900) { if (n < 900)
return false; return false;
else else
@ -95,7 +95,7 @@ namespace cln {
// n = 2000: Newton faster for m >= 2020 // n = 2000: Newton faster for m >= 2020
// n = 2500: Newton faster for m >= 2520 // n = 2500: Newton faster for m >= 2520
// n = 5000: Newton faster for m >= 5020 // n = 5000: Newton faster for m >= 5020
static inline bool cl_recip_suitable (uintL m, uintL n) // m > n
static inline bool cl_recip_suitable (uintC m, uintC n) // m > n
{ if (n < 500) { if (n < 500)
return false; return false;
else else

Loading…
Cancel
Save