nasa / LC

The Core Flight System (cFS) Limit Checker (LC) application.
Apache License 2.0
30 stars 21 forks source link

Fix #57, NaN check #71

Closed jphickey closed 1 year ago

jphickey commented 1 year ago

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.