From d8ce060336180aae35957f375ab93a16787bdb1a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 15:38:33 +0100 Subject: [PATCH] total shock! experimentation worked! --- src/add/fsqrt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2