mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-08 08:44:37 +08:00
Node for macOS on arm64 is compiled by clang, which contracts a multiply and an add within one expression into a fused multiply-add. Its sin, cos, tan, asin, acos, atan, sinh, asinh, acosh, atanh, exp, expm1, log, log1p and log10 differ from the unfused results in the last bit for some inputs, so corpus 7717 and 7718 failed on macOS. scr_ieee754.c now sets FP_CONTRACT ON for Apple arm64 targets. Other targets keep it off and compile to the same code as before.