| |||
| Home > Floating-point Support > The math library, mathlib > Legacy, Determine if a number is finite (finite) | |||
In RVCT v2.1 and earlier, mathlib included a finite function
that provided similar functionality to the isfinite macro
in the current release (see Determine if a number
is finite (isfinite)).
To support legacy code that requires the finite function,
you can enable a legacy mode by defining the macro __ENABLE_LEGACY_MATHLIB before
including math.h. This defines a macro (finite)
to provide the same behavior as the old finite function.
However, be aware that it is no longer possible to take the address
of the finite function and so you must change
any code that does this.
This legacy support will be removed in a future release such that only the new behavior remains. ARM recommends that you migrate your use of this function to the new macro.