Ciao Torbjörn,

Il 2022-02-27 10:53 Torbjörn Granlund ha scritto:
Perhaps one could write it (n & 0xff)/2 and get better code

Actually, this trick is already used! In tune/modlinv.c :-/
The following line dates back to 2002:
    __inv = binvert_limb_table[(__n&0xFF)/2]; /*  8 */          \

I did never look into that file :-)

Ĝis,
m
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to