From 7072c408c76a9b5a3f0a5749018dbc9f987db119 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 12:23:19 +0100 Subject: [PATCH] add printout of binary version --- 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 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: -- 2.30.2