From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 14:38:33 +0000 (+0100) Subject: total shock! experimentation worked! X-Git-Tag: ls180-24jan2020~1113 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8ce060336180aae35957f375ab93a16787bdb1a;p=ieee754fpu.git total shock! experimentation worked! --- diff --git a/src/add/fsqrt.py b/src/add/fsqrt.py index 3b6d1f23..2171646c 100644 --- a/src/add/fsqrt.py +++ b/src/add/fsqrt.py @@ -96,8 +96,8 @@ def fsqrt_test(x): s, e, m = decode_fp32(xbits) print("x decode", s, e, m, hex(m)) - m |= 1<<24 # set top bit (the missing "1" from mantissa) - m <<= 24 + m |= 1<<23 # set top bit (the missing "1" from mantissa) + m <<= 25 sm, se = main(m, e) sm >>= 1