From dba1d65769ac7ec36f6f647bfb5c40615b502598 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 11:22:34 +0100 Subject: [PATCH] sorting out... --- src/add/fsqrt.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/add/fsqrt.py b/src/add/fsqrt.py index 852998f9..e9b856ed 100644 --- a/src/add/fsqrt.py +++ b/src/add/fsqrt.py @@ -107,9 +107,13 @@ if __name__ == '__main__': s, e, m = decode_fp32(xbits) print(s, e, m, hex(m)) + se, sm = main(e, m) + print("our sqrt", se, sm, hex(sm)) + sq_test = x.sqrt() - e, m = decode_fp32(sq_test) - print(main(e, m)) + sq_xbits = sq_test.bits + s, e, m = decode_fp32(sq_xbits) + print ("sf16 sqrt", s, e, m, hex(m)) """ Notes: -- 2.30.2