projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dba1d65
)
add printout of binary version
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 29 Apr 2019 11:23:19 +0000
(12:23 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 29 Apr 2019 11:23:19 +0000
(12:23 +0100)
src/add/fsqrt.py
patch
|
blob
|
history
diff --git
a/src/add/fsqrt.py
b/src/add/fsqrt.py
index e9b856ed459bd999023809fcdbc4f58dcea5080b..5aaec4c37be8a52f55f8af742324e3143a2ce1a7 100644
(file)
--- 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 ("sf
16 sqrt", s, e, m, hex
(m))
+ print ("sf
32 sqrt", s, e, m, hex(m), bin
(m))
"""
Notes: