Re: speed and mpn_set_str

2013-01-09 Thread Torbjorn Granlund
ni...@lysator.liu.se (Niels Möller) writes: Are the thresholds for mpn_set_str compared to input size or (estimated) output limb count? I imagine optimal threshold may also be base-dependent. Input size. The thresholds are done for base 10. No work has been done to be clever about this

Re: speed and mpn_set_str

2013-01-09 Thread Niels Möller
Torbjorn Granlund writes: > In the case of tune/speed it usually follows what tune/tuneup does, > which is output the type needed by the library. This might require some > interpretation by humans. Are the thresholds for mpn_set_str compared to input size or (estimated) output limb count? I ima

Re: speed and mpn_set_str

2013-01-09 Thread Torbjorn Granlund
Zimmermann Paul writes: it seems the speed command considers for mpn_set_str the size of the *input*, i.e., the number of *bytes* of the input string, and not the number of limbs of the corresponding mpn number. There are a couple of quirks in tune/speed program and similarly in tests/de

speed and mpn_set_str

2013-01-08 Thread Zimmermann Paul
Hi, it seems the speed command considers for mpn_set_str the size of the *input*, i.e., the number of *bytes* of the input string, and not the number of limbs of the corresponding mpn number. This makes it difficult to compare it to other mpn functions: frite% ./speed -s 1000-110 -f 2