t...@gmplib.org (Torbjörn Granlund) writes:

> The table generator program has now run.  Also pi1 wants the old code.
>
> The next question is how badly they want it.  :-)

For tuned *_METHOD values, it might be useful to let tuneup also add a
comment with next best method and margin, something like

#define HGCD2_METHOD 2 /* 3.2% faster than method 1 */

> Did you have a chance of playing with some code which takes care of
> small quotients without branches or division?

I did one variant with table lookup and an approximative quotient, which
implies that one needed conditional swaps depending on a < b. That
didn't beat plain division in my testing. But I also expect that we can
beat plain division on more machines.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to