[x] I signed and emailed the appropriate Contributor License Agreement to GSFC-SoftwareRelease@mail.nasa.gov and copied cfs-program@lists.nasa.gov.
Describe the contribution
Use C99 standard math.h macros to check for NaN and/or infinity.
Note that in addition to being platform independent, in an optimized build this will likely invoke a much more efficient CPU instruction to do the test as opposed to the bit-masking that was done before.
Fixes #57
Testing performed
Build and run all tests
Expected behavior changes
No impact to behavior.
System(s) tested on
Debian
Additional context
C99 provides standardized macros for these NaN/Infinity checks in math.h
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.
Checklist (Please check before submitting)
Describe the contribution Use C99 standard math.h macros to check for NaN and/or infinity.
Note that in addition to being platform independent, in an optimized build this will likely invoke a much more efficient CPU instruction to do the test as opposed to the bit-masking that was done before.
Fixes #57
Testing performed Build and run all tests
Expected behavior changes No impact to behavior.
System(s) tested on Debian
Additional context C99 provides standardized macros for these NaN/Infinity checks in
math.h
Contributor Info - All information REQUIRED for consideration of pull request Joseph Hickey, Vantage Systems, Inc.