mpn_mod_1 and friend

Washuu Kobayashi washuu at
Sun Jun 12 09:37:56 CEST 2005


what  is  the  difference  (in  terms  of usage) between mpn_mod_1 and
mpn_modexact_1_odd?  the  manual  is very short on info about them, it
doesn't even mention the latter function.

If  I  understand  the source, mpn_modexact_1_odd is used when size of
dividend  is  greater  than  MODEXACT_1_ODD_THRESHOLD,  which  (on x86
platform)  seems  to  be  MP_SIZE_T_MAX.  So  _always_  would  be used
mpn_mod_1, right?

Best regards,
 Washuu                          mailto:washuu at

More information about the gmp-discuss mailing list