diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-05-06 15:17:18 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-05-06 15:17:18 +0200 |
commit | 889dbf81def0986e4569841d64a7f3882808ee07 (patch) | |
tree | 686df2eaa37515d315a89372d0915e8afcaa43e0 /erts/emulator/beam/erl_arith.c | |
parent | dcffa010ef304c4dbb2e830103b7ca87fb7b62b0 (diff) | |
download | otp-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.c | 5 |
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; +} |