public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Almost an order of magnitude faster __udimodti4() for AMD64
@ 2020-08-10 13:01 Stefan Kanthak
  0 siblings, 0 replies; only message in thread
From: Stefan Kanthak @ 2020-08-10 13:01 UTC (permalink / raw)
  To: gcc

Hi @ll,

I don't use GCC, so I don't know whether there's a benchmark
for __udivmodti4() and/or __udivmoddi4() for AMD64 and i386
processors.

If you have one: get my "slow" __udivmodti4() from
<https://skanthak.homepage.t-online.de/integer.html#as-1>
and run the benchmark, then my fast __udivmodti4() from
<https://skanthak.homepage.t-online.de/integer.html#as-2>
and repeat.
The "slow" __udivmodti4() should be slightly faster than your
current implementation for AMD64, while the fast one almost
an order of magnitude...
<https://skanthak.homepage.t-online.de/integer.html#summary>
shows my numbers.

And while you're there, also benchmark __udivmoddi4() from
<https://skanthak.homepage.t-online.de/integer.html#as-3>,
__umoddi3() from
<https://skanthak.homepage.t-online.de/integer.html#as-4>,
__moddi3() from
<https://skanthak.homepage.t-online.de/integer.html#as-5>,
as well as (after trivial editing) __udivdi3() from
<https://skanthak.homepage.t-online.de/integer.html#ml-1>
and __divdi3() from
<https://skanthak.homepage.t-online.de/integer.html#ml-2>

regards
Stefan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-10 13:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 13:01 Almost an order of magnitude faster __udimodti4() for AMD64 Stefan Kanthak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).