Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
Loading...
Searching...
No Matches
Non-Finite Value Check Functions

Functions

boolean_T rtIsInf (real_T value)
 Checks if a double-precision value is positive or negative infinity.
 
boolean_T rtIsInfF (real32_T value)
 Checks if a single-precision value is positive or negative infinity.
 
boolean_T rtIsNaN (real_T value)
 Checks if a double-precision value is Not-a-Number (NaN).
 
boolean_T rtIsNaNF (real32_T value)
 Checks if a single-precision value is Not-a-Number (NaN).
 

Detailed Description

Function Documentation

◆ rtIsInf()

boolean_T rtIsInf ( real_T  value)

Checks if a double-precision value is positive or negative infinity.

This is a wrapper around the standard C library function isinf().

Parameters
[in]valueThe real_T (double) value to check.
Returns
true if the value is infinite, false otherwise.

Definition at line 40 of file rt_nonfinite.c.

41{
42 return (isinf(value) != 0U);
43}

Referenced by rt_powd_snf(), and rt_powd_snf().

Here is the caller graph for this function:

◆ rtIsInfF()

boolean_T rtIsInfF ( real32_T  value)

Checks if a single-precision value is positive or negative infinity.

This is a wrapper around the standard C library function isinf().

Parameters
[in]valueThe real32_T (float) value to check.
Returns
true if the value is infinite, false otherwise.

Definition at line 50 of file rt_nonfinite.c.

51{
52 return (isinf((real_T)value) != 0U);
53}
double real_T
Generic real type (aliased to double).
Definition rtwtypes.h:87

◆ rtIsNaN()

boolean_T rtIsNaN ( real_T  value)

Checks if a double-precision value is Not-a-Number (NaN).

This is a wrapper around the standard C library function isnan().

Parameters
[in]valueThe real_T (double) value to check.
Returns
true if the value is NaN, false otherwise.

Definition at line 60 of file rt_nonfinite.c.

61{
62 return (isnan(value) != 0U);
63}

Referenced by optimalAngle(), rt_powd_snf(), and rt_powd_snf().

Here is the caller graph for this function:

◆ rtIsNaNF()

boolean_T rtIsNaNF ( real32_T  value)

Checks if a single-precision value is Not-a-Number (NaN).

This is a wrapper around the standard C library function isnan().

Parameters
[in]valueThe real32_T (float) value to check.
Returns
true if the value is NaN, false otherwise.

Definition at line 70 of file rt_nonfinite.c.

71{
72 return (isnan((real_T)value) != 0U);
73}