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

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Mon Apr 29 12:23:09 BST 2019


--- Comment #30 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Aleksandar Kostovic from comment #29)
> >you did exactly the same thing, doh!  you passed in sq_test (an object)
> >*NOT* the bits *OF* the object, which are an integer.
> i think i get it now
> >try git pull.
> okay. i see. the question now remains how do i assemble it all?

well... run the example, you'll see that it's almost there:

1234.1234130859375 <class 'sfpy.float.Float32'>
1150960627 <class 'int'>
0 10 1721331 0x1a43f3
our sqrt 4 860665 0xd21f9
sf32 sqrt 0 5 820535 0xc8537

okay!  so now we can start exploring... and at this point, it's
probably best to go look at softfloat source code and/or also
hardfloat... 1 sec let me just commit some extra print/debug

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

More information about the libre-riscv-dev mailing list