binvert_limb speedup on 64 bit machines with UHWtype
Marco Bodrato
bodrato at mail.dm.unipi.it
Sun Feb 27 18:45:28 CET 2022
Ciao,
Il 2022-02-27 18:13 Marco Bodrato ha scritto:
> I did never look into that file :-)
I inserted there a few more versions of binvert_limb.
The attached patch is only for testing, not to be pushed (I used
uint_fast##_t types).
On shell I get the following:
@shell ~/gmp-repo]$ /var/tmp/bodrato/gmp/hg/build/tune/speed -p100000000
-s 1 -rc binvert_limb binvert_limb_sec binvert_limb_pipe
binvert_limb_uintfast
overhead 5.84 cycles, precision 100000000 units of 2.86e-10 secs, CPU
freq 3500.09 MHz
binvert_limb binvert_limb_sec binvert_limb_pipe binvert_limb_uintfast
1 28.39 1.0485 #0.8930 0.9999
The _sec version is 5% slower, and the _pipe one is 10% faster than the
current.
Ĝis,
m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp.diff
Type: text/x-diff
Size: 6690 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-devel/attachments/20220227/90d3ddb4/attachment.bin>
More information about the gmp-devel
mailing list