The HP-UX Math Library, libm, supports all mathematical functions specified by the
C standard, ANSI/ISO/IEC 9899:1999 (C99) , as well as functions
specified by the XPG4.2, SVID, and COSE Common API (Spec 1170) specifications.
Summary
of Change |
 |
The HP-UX 11i v1.6 introduces new functions in the HP-UX namespace:
reciprocal square root (rsqrt[fwlq])
integer-exponent power functions (pown[fwlq], powlln[fwlq])
Details
of Change |
 |
The reciprocal square root functions provide a combined square
root and divide, which is common in some important performance critical
applications, with about the execution time of a square root alone.The
integer-exponent power functions provide a direct C translation
of the Fortran real integer operations, and achieve better performance
in some cases than the standard C pow functions.Users may call the
new functions if they wish, but are not otherwise required to take
any action. (See Compatibility below.)
Impact |
 |
No impact.
Compatibility |
 |
The names of the new functions expand the HP-UX namespace:
Table 7-1 New HP-UX Functions
rsqrt | rsqrtf | rsqrtl |
pown | pownf | pownl |
powlln | powllnf | powllnl |
and further with the -fpwidetypes option:
Table 7-2 Further HP-UX Function Expansion
rsqrtw | rsqrtq | pownw |
pownq | powllnw | powllnq |
If these names have been for other purposes, the pertinent
code may need to be altered.
Declarations of the integer-exponent power functions, with
names prefixed with an underscore, appeared in the HP-UX 11i v1.5
math.h header, though were not documented in the manpages. The underscore-prefix
names are retained in the HP-UX 11i v1.6 math.h header (and the
entry points are still in libm.a).
Performance |
 |
There is no impact to performance.
Obsolescence |
 |
Not applicable.
Documentation |
 |
The new rsqrt(3M) manpage describes the reciprocal
square root functions.
The pow(3M) manpage
is augmented to cover the integer-exponent power functions.The new
functions are mentioned in the math library white paper, which is
updated for HP-UX 11i v1.6 and can be found at:
http://docs.hp.com