mod_1 tuning
Niels Möller
nisse at lysator.liu.se
Thu Mar 3 22:56:32 CET 2011
Torbjorn Granlund <tg at gmplib.org> writes:
> nisse at lysator.liu.se (Niels Möller) writes:
>
> This means that tuned values of MOD_1_1P_METHOD now ought to be included
> in gmp-mparam.h, otherwise other MOD_1* values will be suboptimal. And
> hence, the new method 2 is going to be enabled on several machines.
>
> OK. The default is still 1?
Yes.
> #define __gmpn_mod_1 mpn_mod_1_tune
>
> I don't recall. Isn't it to allow for multiple version of the code to
> be compiled into the same binary, which demands for some renaming?
Clearly, it's needed if for some reason one wants some function in
tuneup to directly or indirectly call the non-instrumented version of
mpn_mod_1. Question is, what that reason may be (I haven't tried very
hard to figure it out, maybe there's some obvious call in tuneup.c).
/nisse
--
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
More information about the gmp-devel
mailing list