summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/predicates.tab
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/beam/predicates.tab')
-rw-r--r--erts/emulator/beam/predicates.tab12
1 files changed, 0 insertions, 12 deletions
diff --git a/erts/emulator/beam/predicates.tab b/erts/emulator/beam/predicates.tab
index 7ebd5bcb2b..4bccce577f 100644
--- a/erts/emulator/beam/predicates.tab
+++ b/erts/emulator/beam/predicates.tab
@@ -184,18 +184,6 @@ pred.binary_too_big(Size) {
(Size.type == TAG_u && ((Size.val >> (8*sizeof(Uint)-3)) != 0));
}
-
-// Test whether the negation of the given number is small.
-pred.negation_is_small(Int) {
- /*
- * Check for the rare case of overflow in BeamInstr (UWord) -> Sint.
- * Cast to the correct type before using IS_SSMALL (Sint).
- */
- return Int.type == TAG_i &&
- !(Int.val & ~((((BeamInstr)1) << ((sizeof(Sint)*8)-1))-1)) &&
- IS_SSMALL(-((Sint)Int.val));
-}
-
// Mark this label. Always succeeds.
pred.smp_mark_target_label(L) {
ASSERT(L.type == TAG_f);