hppac.3x (2010 09)

h
hppac(3X) hppac(3X)
(PA-RISC Systems Only)
DESCRIPTION
This set of calls invokes the library functions for emulating 3000-mode (MPE V/E) packed-decimal opera-
tions. These functions are in library libcl which is searched when the option
-lcl is used with cc or
ld(1).
HPPACADDD() Performs packed-decimal addition.
HPPACCMPD() Compares two packed-decimal numbers.
HPPACCVAD() Converts an ASCII representation to packed-decimal.
HPPACCVBD() Converts a binary representation to packed-decimal.
HPPACCVDA() Converts a packed-decimal number to ASCII.
HPPACCVDB() Converts a packed-decimal number to binary.
HPPACDIVD() Performs packed-decimal division.
HPPACLONGDIVD()
Performs packed-decimal division (alternate routine).
HPPACMPYD() Performs packed-decimal multiplication.
HPPACNSLD() Performs a packed-decimal normalizing left shift.
HPPACSLD() Performs a packed-decimal left shift.
HPPACSRD() Performs a packed-decimal right shift.
HPPACSUBD() Performs packed-decimal subtraction.
For all operations, the value returned in the variable to which the compcode argument points is one of the
following values of type
enum HPPAC_CC:
HPPAC_CCG Result > 0 or operand1 > operand2
HPPAC_CCL Result < 0 or operand1 < operand2
HPPAC_CCE Result == 0 or operand1 == operand2
For all operations, the value returned in the variable to which the pacstatus argument points is one of the
following values of type
enum HPPAC_STATUS. Their meanings are intended to be obvious:
HPPAC_NO_ERROR
HPPAC_DECIMAL_OVERFLOW
HPPAC_INVALID_ASCII_DIGIT
HPPAC_INVALID_PACKED_DECIMAL_DIGIT
HPPAC_INVALID_SOURCE_WORD_COUNT
HPPAC_INVALID_DECIMAL_OPERAND_LENGTH
HPPAC_DECIMAL_DIVIDE_BY_ZERO
AUTHOR
The HPPAC library was developed by HP.
SEE ALSO
Compiler Library/XL Reference Manual
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3