Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (N)
Guardian Procedure Calls Reference Manual522629-013
10-46
NSK_FLOAT_IEEE32_TO_TNS32_ Procedure
NSK_FLOAT_IEEE64_TO_TNS32_ Procedure
The following is a list of the error bits that can be set by at least one of the three
IEEE_TO_TNS conversion procedures:
The following indicates which procedures can produce which errors:
For NSK_FLOAT_IEEE32_TO_TNS32_:
IEEE_Data input
INT .ext:ref (NSK_float_ieee32)
The 32-bit IEEE floating-point number.
TNS_Data output
INT .ext:ref (NSK_float_tns32)
The 32-bit TNS floating-point number
For NSK_FLOAT_IEEE32_TO_TNS64_:
NSK_FLOAT_TNS_OVERFLOW The input was out of range (either too
big in magnitude, infinity, or not a
number (NaN)). The result had the
largest possible magnitude.
NSK_FLOAT_TNS_UNDERFLOW The input was out of range (too small
in magnitude) and could not be
represented correctly.
NSK_FLOAT_TNS_INEXACT The result did not exactly match the
input.
NSK_FLOAT_WAS_INFINITY Overflow happened because the input
was an IEEE infinity.
NSK_FLOAT_WAS_NAN Overflow happened because the input
was an IEEE NaN.
Conversion Over-
flow
Under-
flow
In-
exact
Was_
Inf
Was_
NaN
IEEE64 to TNS64 YES YES YES YES YES
IEEE64 to TNS32 YES YES YES YES YES
IEEE32 to TNS32 YES NO YES YES YES
Note. For IEEE32-to-TNS32 conversion, overflow can occur only if the input is infinite
or a NaN.