You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Trying to include math.h (to use isnan()) fails on EFR32, both when
// included as "cmath" and when included as "math.h". For lack of
// isnan(), just fall back on the NaN != NaN thing.
return value != value;
but as #12439 (comment) points out this could trap (certainly if value happens to be a signaling NaN).
Proposed Solution
Ideally, the EFR32 headers would get fixed so including "math.h" works. The compiler error we run into is on this line:
.environment/cipd/pigweed/arm-none-eabi/include/c++/10.2.1/cmath:237: using ::fabs;
where the compiler complains it has no idea what ::fabs is.
Problem
We have this code:
but as #12439 (comment) points out this could trap (certainly if
value
happens to be a signaling NaN).Proposed Solution
Ideally, the EFR32 headers would get fixed so including "math.h" works. The compiler error we run into is on this line:
where the compiler complains it has no idea what
::fabs
is.@mspang do you know who might know about this?
The text was updated successfully, but these errors were encountered: