[Libre-soc-bugs] [Bug 1044] SVP64 implementation of pow(x,y,z)

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Oct 6 04:27:53 BST 2023


--- Comment #25 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #24)
> I wrote the powmod assembly, and got a python equivalent working, however,
> because divmod is really slow, running one powmod invocation is a few
> hundred thousand simulated instructions (powmod calls divmod 256-512 times,
> divmod loops 256 times, each inner loop is ~20 ops).

actually, picking the average number of divmod calls of 384, it comes out to
~2 million operations!
384 * 256 * 20 = 1966080

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list