Figure out a better way to test for NaN in attribute-storage-null-handling.h
Problem
We have this code:
// 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 https://github.com/project-chip/connectedhomeip/pull/12439#discussion_r760761018 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.
@mspang do you know who might know about this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.