[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 10:53:00 BST 2019


http://bugs.libre-riscv.org/show_bug.cgi?id=74

--- Comment #11 from Aleksandar Kostovic <alexandar.kostovic at gmail.com> ---
I pushed the commit of the python code of the previous C version of SQRT
function found in that paper. BUT it doesnt work yet, as i had to init a
variable with no value(it was done like that in c version) so now python trows
an error because of it. also i commented the old version so there exists a
"vorking version" of sqrt function.

  File "/home/aleksandar/projects/ieee754fpu/src/add/fsqrt.py", line 28, in
sqrt
    R = (R<<2)|((D>>(i+i))&3)
TypeError: unsupported operand type(s) for >>: 'NoneType' and 'int'

Any ideas on how to fix this are welcome.

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


More information about the libre-riscv-dev mailing list