projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce6d68
)
FSGNJ: Fix typo in abs
author
Michael Nolan
<mtnolan2640@gmail.com>
Mon, 27 Jan 2020 17:33:27 +0000
(12:33 -0500)
committer
Michael Nolan
<mtnolan2640@gmail.com>
Mon, 27 Jan 2020 17:33:27 +0000
(12:33 -0500)
src/ieee754/fsgnj/fsgnj.py
patch
|
blob
|
history
diff --git
a/src/ieee754/fsgnj/fsgnj.py
b/src/ieee754/fsgnj/fsgnj.py
index 44d04580c5643922cb140e5b5394484b868c83d6..d277e28b532016f53cc838a96f19d1c3d735d423 100644
(file)
--- a/
src/ieee754/fsgnj/fsgnj.py
+++ b/
src/ieee754/fsgnj/fsgnj.py
@@
-53,7
+53,7
@@
class FSGNJPipeMod(PipeModBase):
# here as equivalent to opcode 0b10 (i.e. a1.s XOR b1.s)
# because this requires slightly less logic than making it the
# same as opcode 0b00 (1 less Mux).
- sign = Mux(opcode[1],
b
[-1] ^ b[-1], sign)
+ sign = Mux(opcode[1],
a
[-1] ^ b[-1], sign)
# Create the floating point number from the sign bit
# calculated earlier and the exponent and mantissa of operand a