[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 10:29:03 BST 2019


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

--- Comment #26 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Aleksandar Kostovic from comment #25)

> Okay i understood up until the x = Float32(num) and xbits = x.bits. So i
> decided to print out the values of decode_fp32 function first, to check if
> its working.... aaaaand its not.
> 
> x = Float32(1234.123456789)
> xbits = x.bits
>     
> 
> print(decode_fp32(x))
> TypeError: unsupported operand type(s) for &: 'sfpy.float.Float32' and 'int'

yes, that is precisely and exactly the correct error, because you tried
to decode x (an object) not xbits (an integer)

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


More information about the libre-riscv-dev mailing list