Performance analysis of Mul algorithms in the same range
Lingchuan Meng
lingchuanmeng at gmail.com
Sun Jan 4 05:39:45 CET 2009
Hi all,
I'm new to GMP and trying to measure the performance of the four integer
multiplication algorithms. I tried manually modifying the
MUL_KARATSUBA_THRESHOLD MUL_TOOM3_THRESHOLD
MUL_FFT_THRESHOLD in the 'gmp-mparam.h' as follows:
#define MUL_KARATSUBA_THRESHOLD 1
#define MUL_TOOM3_THRESHOLD 5100
....
#define MUL_FFT_THRESHOLD 5100
Then, I re-ran the configure and make. I expect it to force using Karatsuba
when the sizes of operands are in [1, 5100) in terms of limb. However, the
outcome doesn't change accordingly. It's more like that the Karatsuba hasn't
been forced to be used throughout the testing range.
Any suggestion is appreciated. Happy belated New Year!
--
Best regards,
Lingchuan Meng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20090103/2e17949a/attachment.html
More information about the gmp-discuss
mailing list