Alternative bernoulli(const numeric &)

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Tue Jan 22 13:25:48 CET 2002


On Mon, 21 Jan 2002, Markus Nullmeier wrote:
[...]
> But using "(p < 32768)" does gain a speedup of about 5% for
[...]
> +		if (p < 32768)
[...]

I suspect the condition should really be `(p < (1UL<<cl_value_len/2))', in
order to be portable across platforms...

By the way, I just noticed that the condition cln::cl_immediate_p in
numeric::numeric(int) is total bogus.  cln::cl_immediate_p() is not meant
for this.  EhrgglgasdaaAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHH!!!!!

Oh, no.  Pass the brown paper bag again, please...

Embarrassed
         -richy.
-- 
Richard B. Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>





More information about the GiNaC-devel mailing list