mpn_sqrtrem1

Marco Bodrato bodrato at mail.dm.unipi.it
Tue Dec 20 21:36:26 UTC 2016


Ciao,

Il Lun, 19 Dicembre 2016 6:21 pm, Adrien Prost-Boucle ha scritto:
> The program enables to launch benchmark with these commands:
> ./sqrt bench32 10000000
> ./sqrt bench64 10000000
> ./sqrt bench64x2 10000000

It is quite difficult to interpret the numbers, times spent by direct
calls to some functions is compared to the time spent by other functions
called trough a wrapper...

You should decide a single interface and adapt to it all the to be
compared algorithms.

Of course, from the point of view of GMP, the best would be to compare
functions that can be used as a drop-in replacement of the current
mpn_sqrtrem1 (and mpn_sqrtrem2) functions in GMP mpn/generic/sqrtrem.c
code.
Obviously you can choose a different interface, but you should avoid
wrappers.

Regards,
m

-- 
http://bodrato.it/papers/



More information about the gmp-devel mailing list