projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2473cab
)
sorting out...
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 29 Apr 2019 10:22:34 +0000
(11:22 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 29 Apr 2019 10:22:34 +0000
(11:22 +0100)
src/add/fsqrt.py
patch
|
blob
|
history
diff --git
a/src/add/fsqrt.py
b/src/add/fsqrt.py
index 852998f93e7e69fc8496c69690b2ca71c453d379..e9b856ed459bd999023809fcdbc4f58dcea5080b 100644
(file)
--- 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: