From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 10:22:34 +0000 (+0100) Subject: sorting out... X-Git-Tag: ls180-24jan2020~1117 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dba1d65769ac7ec36f6f647bfb5c40615b502598;p=ieee754fpu.git sorting out... --- 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: