Guardian Procedure Calls Reference Manual
Parameters
For NSK_FLOAT_TNS32_TO_IEEE32_:
TNS_Data
input
INT .EXT:ref (NSK_float_tns32)
is the 32-bit TNS floating-point number.
IEEE_Data
output
INT .EXT:ref (NSK_float_ieee32)
is the 32-bit IEEE floating-point number.
For NSK_FLOAT_TNS32_TO_IEEE64_:
TNS_Data
input
INT .EXT:ref (NSK_float_tns32)
is the 32-bit TNS floating-point number.
IEEE_Data
output
INT .EXT:ref (NSK_float_ieee64)
is the 64-bit IEEE floating-point number.
For NSK_FLOAT_TNS64_TO_IEEE64_
TNS_Data
input
INT .EXT:ref (NSK_float_tns64)
is the 64-bit TNS floating-point number.
IEEE_Data
output
INT .EXT:ref (NSK_float_ieee64)
is the 64-bit IEEE floating-point number.
Returned Value
INT(32)
32-bit error mask.
No bits set means the result was exactly equal in value to the input. This value can be identified
with NSK_FLOAT_OK, which is equal to zero.
The error bits that can be set by at least one of the three TNS_TO_IEEE conversion procedures are:
The input was out of range (too big in magnitude), and the result was an IEEE
infinity. The sign of the result matched the sign of the input.
NSK_FLOAT_IEEE_OVERFLOW
The input was out of range (too small in magnitude) and could not be represented
exactly, even as a denormalized number.
NSK_FLOAT_IEEE_UNDERFLOW
The result did not exactly match the input.NSK_FLOAT_IEEE_INEXACT
NSK_FLOAT_TNS TO IEEE Procedures 879