[Pharo-project] NativeBoost: perform 10, 000, 000 4096-digit additions fr1 := fr1 + fr1 in a loop in 1971 ms

Lawson English lenglish5 at cox.net
Sat Jul 14 02:44:45 EDT 2012


On 7/13/12 11:36 PM, Lawson English wrote:
>
>
> "function prototype: mpfr_add (mpzf_t gmpf, mpf_t op1, mpf_t op2)"
>
the prototype is actually mpfr_add (mpfr_t gmpfr, mpfr_t op1, mpfr_t 
op2, ulong rnd)

http://www.mpfr.org/mpfr-current/mpfr.html#Basic-Arithmetic-Functions

I'm using rnd := 0.   MPFR_RNDN: round to nearest

-- 
Squeak from the very start (introduction to Squeak and Pharo Smalltalk for the (almost) complete and compleate beginner).
https://www.youtube.com/playlist?list=PL6601A198DF14788D&feature=view_all





More information about the Pharo-dev mailing list