projects
/
ieee754fpu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add fp64 mul unit test
[ieee754fpu.git]
/
src
/
ieee754
/
fpcommon
/
test
/
unit_test_double.py
diff --git
a/src/ieee754/fpcommon/test/unit_test_double.py
b/src/ieee754/fpcommon/test/unit_test_double.py
index 56cb80189f34a2981d1460182dea3f42e70db3c1..2714273ec19cf5e16c0c8fa0b32324cb5ff3fa68 100644
(file)
--- a/
src/ieee754/fpcommon/test/unit_test_double.py
+++ b/
src/ieee754/fpcommon/test/unit_test_double.py
@@
-13,7
+13,7
@@
def get_exponent(x):
return ((x & 0x7ff0000000000000) >> 52) - 1023
def set_exponent(x, e):
- return (x & ~0x7ff0000000000000) | ((e+1023) <<
23
)
+ return (x & ~0x7ff0000000000000) | ((e+1023) <<
52
)
def get_sign(x):
return ((x & 0x8000000000000000) >> 63)