diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-05-07 16:50:52 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-05-07 16:50:52 +0200 |
commit | b17d18510c013b5077c57e778b6e1bf0f8784395 (patch) | |
tree | eb06ea1198cbfe62dc70943b0baad255912e5225 /erts/emulator/beam/erl_arith.c | |
parent | 7b9a2c6b90cc6f41b0f42198e474a9322a4f2a94 (diff) | |
parent | 889dbf81def0986e4569841d64a7f3882808ee07 (diff) | |
download | otp-b17d18510c013b5077c57e778b6e1bf0f8784395.tar.gz otp-b17d18510c013b5077c57e778b6e1bf0f8784395.tar.bz2 otp-b17d18510c013b5077c57e778b6e1bf0f8784395.zip |
Merge branch 'egil/fix-pos-zero-opt'
* egil/fix-pos-zero-opt:
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; +} |