aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_arith.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-05-06 15:17:18 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-05-06 15:17:18 +0200
commit889dbf81def0986e4569841d64a7f3882808ee07 (patch)
tree686df2eaa37515d315a89372d0915e8afcaa43e0 /erts/emulator/beam/erl_arith.c
parentdcffa010ef304c4dbb2e830103b7ca87fb7b62b0 (diff)
downloadotp-889dbf81def0986e4569841d64a7f3882808ee07.tar.gz
otp-889dbf81def0986e4569841d64a7f3882808ee07.tar.bz2
otp-889dbf81def0986e4569841d64a7f3882808ee07.zip
erts: Don't let the compiler optimize pos. zero fix
Diffstat (limited to 'erts/emulator/beam/erl_arith.c')
-rw-r--r--erts/emulator/beam/erl_arith.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_arith.c b/erts/emulator/beam/erl_arith.c
index 5150a8a507..47d516534f 100644
--- a/erts/emulator/beam/erl_arith.c
+++ b/erts/emulator/beam/erl_arith.c
@@ -2048,3 +2048,8 @@ Eterm erts_gc_bnot(Process* p, Eterm* reg, Uint live)
}
return result;
}
+
+/* Needed to remove compiler optimization */
+double erts_get_positive_zero_float() {
+ return 0.0f;
+}