Floating-point number utility functions

Floating-point utility function provide run-time functions for handling floating-point number types defined within a schema. More...

Functions

EXTERNRT OSREAL rtxGetMinusInfinity (void)
 Returns the IEEE negative infinity value.
EXTERNRT OSREAL rtxGetMinusZero (void)
 Returns the IEEE minus zero value.
EXTERNRT OSREAL rtxGetNaN (void)
 Returns the IEEE Not-A-Number (NaN) value.
EXTERNRT OSREAL rtxGetPlusInfinity (void)
 Returns the IEEE posative infinity value.
EXTERNRT OSBOOL rtxIsMinusInfinity (OSREAL value)
 A utility function that compares the given input value to the IEEE 754 value for negative infinity.
EXTERNRT OSBOOL rtxIsMinusZero (OSREAL value)
 A utility function that compares the given input value to the IEEE 754 value for minus zero.
EXTERNRT OSBOOL rtxIsNaN (OSREAL value)
 A utility function that compares the given input value to the IEEE 754 value for Not-A-Number (NaN).
EXTERNRT OSBOOL rtxIsPlusInfinity (OSREAL value)
 A utility function that compares the given input value to the IEEE 754 value for positive infinity.

Detailed Description

Floating-point utility function provide run-time functions for handling floating-point number types defined within a schema.


Function Documentation

EXTERNRT OSREAL rtxGetMinusInfinity ( void   ) 

Returns the IEEE negative infinity value.

This is defined as 0xfff0000000000000 in IEEE standard 754. We assume the presence of the IEEE double type, that is, 64-bits of precision.

EXTERNRT OSREAL rtxGetMinusZero ( void   ) 

Returns the IEEE minus zero value.

This is defined as 0x8000000000000000 in IEEE standard 754. We assume the presence of the IEEE double type, that is, 64-bits of precision.

EXTERNRT OSREAL rtxGetNaN ( void   ) 

Returns the IEEE Not-A-Number (NaN) value.

This is defined as 0x7ff8000000000000 in IEEE standard 754. We assume the presence of the IEEE double type, that is, 64-bits of precision.

EXTERNRT OSREAL rtxGetPlusInfinity ( void   ) 

Returns the IEEE posative infinity value.

This is defined as 0x7ff0000000000000 in IEEE standard 754. We assume the presence of the IEEE double type, that is, 64-bits of precision.

EXTERNRT OSBOOL rtxIsMinusInfinity ( OSREAL  value  ) 

A utility function that compares the given input value to the IEEE 754 value for negative infinity.

Parameters:
value The input real value.

EXTERNRT OSBOOL rtxIsMinusZero ( OSREAL  value  ) 

A utility function that compares the given input value to the IEEE 754 value for minus zero.

Parameters:
value The input real value.

EXTERNRT OSBOOL rtxIsNaN ( OSREAL  value  ) 

A utility function that compares the given input value to the IEEE 754 value for Not-A-Number (NaN).

Parameters:
value The input real value.

EXTERNRT OSBOOL rtxIsPlusInfinity ( OSREAL  value  ) 

A utility function that compares the given input value to the IEEE 754 value for positive infinity.

Parameters:
value The input real value.