[libre-riscv-dev] [Bug 74] preliminary exploratory software emulation of FP SQRT

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Sun Apr 28 16:27:30 BST 2019


--- Comment #18 from Aleksandar Kostovic <alexandar.kostovic at gmail.com> ---
> great.  so... bye bye sqrt for now.  can always track that down later.
I think you misunderstood. Its the sqrtsimple function that is failing:

File "/home/aleksandar/projects/ieee754fpu/src/add/fsqrt.py", line 88, in
    assert int(Q**0.5) == sqrtsimple(Q), "Q sqrtsimpl fail %d" % Q

So we use the regular sqrt func.

>btw do you already have sfpy installed and built?  if so, we can move
>to the next phase of "from sfpy import Float32" and use that to mangle/de-mangle >FP numbers into sign/mantissa/exponent, using sfpy.Float32.get_bits
Yes i have it installed

>so, next stage, you want to write a test for-loop around the main() function?
>maybe run another for-loop "for e in range(25)" or something, and maaybe
>reduce the for-loop around mantissa just a tad? :)
>don't delete the existing for-loop and asserts, add *another* for-loop
>(this one with 2 nested for's, one for e one for m)
Will try to do it now

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

More information about the libre-riscv-dev mailing list