]> www.ginac.de Git - cln.git/blobdiff - src/base/digitseq/cl_2DS_recip.cc
* src/base/digitseq/cl_asm.h: Test if (intDsize==32) for MIPS and HPPA,
[cln.git] / src / base / digitseq / cl_2DS_recip.cc
index 73a9ef35e12f7d7d903e9809645d85eec5bacdd7..8ae8621e36c626bcf67d1a9fdf5b525d69ce7f04 100644 (file)
 #include "cl_DS.h"
 
 // Break-even point of the Newton iteration vs. standard div2adic.
+#if CL_USE_GMP
+const unsigned int recip2adic_threshold = 620;
+#else
+// Use the old default values from CLN version <= 1.0.3 as a crude estimate.
 const unsigned int recip2adic_threshold = 380;
+#endif
+
+namespace cln {
 
 void recip2adic (uintC len, const uintD* a_LSDptr, uintD* dest_LSDptr)
 {
@@ -59,3 +66,4 @@ void recip2adic (uintC len, const uintD* a_LSDptr, uintD* dest_LSDptr)
 }
 // Bit complexity (N := len): O(M(N)).
 
+}  // namespace cln