aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/lua-5.4.0/src/lundump.h
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-12-07 12:29:27 +0100
committer lemon<lsof@mailbox.org>2025-12-07 12:29:27 +0100
commit4d4e61e82cd693d2800bf409c8e3dde1ac2b75a5 (patch)
treea2a531dd53648dd3037fb02f0f2d1c5e6fa21113 /test/external/lua-5.4.0/src/lundump.h
parentf7d68175fc2b52230b8f78bf78145c7f1d0ad9c5 (diff)
amd64: use XORPS for floating point negation
Previously `neg x` was being turned into `sub 0, x`. But this gives the wrong result for zero/negative zero (-0.0 == -0.0 but 0.0 - 0.0 == 0.0), so it wasn't IEEE compliant or correct. Do what every other compiler does instead and flip the sign bit with an exclusive or. Should implement someway of deduplicating small data constants like the ones used here though.
Diffstat (limited to 'test/external/lua-5.4.0/src/lundump.h')
0 files changed, 0 insertions, 0 deletions