summaryrefslogtreecommitdiffstats
path: root/include/math-emu/op-2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/math-emu/op-2.h')
-rw-r--r--include/math-emu/op-2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/math-emu/op-2.h b/include/math-emu/op-2.h
index 184eb3c3b..e639d534e 100644
--- a/include/math-emu/op-2.h
+++ b/include/math-emu/op-2.h
@@ -79,7 +79,7 @@
else \
{ \
X##_f0 = (X##_f1 >> ((N) - _FP_W_TYPE_SIZE) | \
- (((X##_f1 << (sz - (N))) | X##_f0) != 0)); \
+ (((X##_f1 << (2*_FP_W_TYPE_SIZE - (N))) | X##_f0) != 0)); \
X##_f1 = 0; \
} \
} while (0)