From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 11:23:19 +0000 (+0100) Subject: add printout of binary version X-Git-Tag: ls180-24jan2020~1116 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7072c408c76a9b5a3f0a5749018dbc9f987db119;p=ieee754fpu.git add printout of binary version --- diff --git a/src/add/fsqrt.py b/src/add/fsqrt.py index e9b856ed..5aaec4c3 100644 --- a/src/add/fsqrt.py +++ b/src/add/fsqrt.py @@ -108,12 +108,12 @@ if __name__ == '__main__': print(s, e, m, hex(m)) se, sm = main(e, m) - print("our sqrt", se, sm, hex(sm)) + print("our sqrt", s, se, sm, hex(sm), bin(sm)) sq_test = x.sqrt() sq_xbits = sq_test.bits s, e, m = decode_fp32(sq_xbits) - print ("sf16 sqrt", s, e, m, hex(m)) + print ("sf32 sqrt", s, e, m, hex(m), bin(m)) """ Notes: