MPE/iX Intrinsics Reference Manual (32650-90875)

Chapter 7 399
Command Definitions (HP32208-HPLOACNMPROC)
HPFPCONVERT
4 IEEE 64-bit
5 IEEE 128-bit
status
32-bit signed integer by reference (optional)
Returns the status of the HPFPCONVERT intrinsic call. If no errors or
warnings are encountered,
status
returns 32 bits of zero. If errors or
warnings are encountered,
status
is interpreted as two 16-bit fields.
Bits (0:16) comprise
status.info
. A negative value indicates an error
condition, refer to the MPE/iX Error Message Manual Volumes 1, 2 and 3
for a description of its value. A positive value indicates that the conversion
was made, but an exception occurred and an
exceptions
parameter was
not supplied. The exception conditions are listed in the
exceptions
parameter description.
Bits (16:16) comprise
status.subsys
. The value represented by these bits
defines the subsystem that set the status information. The subsystem
identifier for HPFPCONVERT is 193.
exceptions
16-bit signed integer by reference (optional)
Returns any exception conditions that occurred during the conversion. If
status.info
is less than zero, then
exceptions
is not modified because
no conversion is done. If this parameter is not present, the value is
returned in
status.info
.
Only the following values can be returned:
Value Meaning
0 No exceptions
1 Inexact only (native mode
destination
only)
3 Underflow and inexact
5 Overflow and inexact
8 Invalid operation
If underflow or overflow occurs during conversion then inexact is also
signaled.
roundmode
16-bit unsigned integer by value (optional)
The rounding mode (not applicable if
destination
is an Hewlett-Packard
3000 format).
Value Meaning
0 Round to nearest, to even if tie (default)
1 Round to zero
2 Round to positive infinity
3
Round to negative infinity