Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (N)
Guardian Procedure Calls Reference Manual—522629-013
10-47
NSK_FLOAT_IEEE32_TO_TNS32_ Procedure
NSK_FLOAT_IEEE64_TO_TNS32_ Procedure
IEEE_Data input
INT .ext:ref (NSK_float_ieee32)
The 32-bit IEEE floating-point number.
TNS_Data output
INT .ext:ref (NSK_float_tns64)
The 64-bit TNS floating-point number
For NSK_FLOAT_IEEE64_TO_TNS64_:
IEEE_Data input
INT .ext:ref (NSK_float_ieee64)
The 64-bit IEEE floating-point number.
TNS_Data output
INT .ext:ref (NSK_float_tns64)
The 64-bit TNS floating-point number
Considerations
•
These procedures are usable by both TNS floating-point-format callers and IEEE
floating-point-format callers.
•
The procedures do not require the data to be aligned on 4-byte or 8-byte
boundaries. Shared2 (2-byte) alignment is sufficient.
•
The NonStop Kernel operating system uses big-endian data formats for all data.
For data interchange with little-endian computers using IEEE floating point (such
as Alpha processors and Intel processors), you must reverse the order of bytes in
the data.
•
Four data structures are declared for containers of data in the four supported
formats:
NSK_float_ieee64 For 64-bit IEEE floating-point numbers
NSK_float_tns64 For 64-bit TNS floating-point numbers
NSK_float_ieee32 For 32-bit IEEE floating-point numbers
NSK_float_tns32 For 32-bit TNS floating-point numbers