Subject: Re: [boost] [Review Request] Multiprecision Arithmetic Library
From: John Maddock (boost.regex_at_[hidden])
Date: 2012-04-04 13:06:14
>> I'd like to ask for a formal review of the Multiprecision Arithmetic
>> Library, currently in the sandbox.
> When you do something like "get_constant_pi()", I see you
> are "warm-caching" the result from the first computation. Great.
> Just to double-check...
> I see the static bool flag, right? It's warm-cached, right? Yes. OK.
> Please confirm:
The constants are initialized prior to the start of main - so they're thread
safe as long as only one thread executes prior to main.
> Would you like to "seed" common constants such as pi, e, sqrt2, ln2, etc.
> with a known string representation of, say, a few hundred digits?
> Or is reading the string slower than computing the value?
Ah, good point, oversight on my part. I've just committed an update that
uses your 1100 digit values to initialize when possible.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk