Add a non-inlineable function for negating a number on macos, bacause due to a compiler bug r = -r was being optimized out, resulting in some modulo operations failing such as -1 % -1 or -1 % 1.
Disable -Wliteral-range for test-math.c on macos, because it was falsely raised for isnan, isinf, and isfinite macros.
Add a non-inlineable function for negating a number on macos, bacause due to a compiler bug
r = -r
was being optimized out, resulting in some modulo operations failing such as-1 % -1
or-1 % 1
.Disable
-Wliteral-range
fortest-math.c
on macos, because it was falsely raised forisnan
,isinf
, andisfinite
macros.