From eb2c8f314d8cd32f8313837101881043594fd949 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 22 Jan 2002 17:01:10 +0000 Subject: [PATCH] * bernoulli(): Add Markus Nullmeier's new implementation. * numeric::numeric({int,unsigned}): Really construct CLN immediates. --- ginac/numeric.cpp | 49 ++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index e621607a..f1be0bcb 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -90,10 +90,10 @@ numeric::numeric(int i) : basic(TINFO_numeric) { // Not the whole int-range is available if we don't cast to long // first. This is due to the behaviour of the cl_I-ctor, which - // emphasizes efficiency. However, if the integer is small enough, - // i.e. satisfies cl_immediate_p(), we save space and dereferences by - // using an immediate type: - if (cln::cl_immediate_p(i)) + // emphasizes efficiency. However, if the integer is small enough + // we save space and dereferences by using an immediate type. + // (C.f. ) + if (i < (1U<) + if (i < (1U<) + if (p < (1UL<