HP-UX Floating-Point Guide
24 Chapter 1
Introduction
Overview of HP-UX Math Libraries
Overview of HP-UX Math Libraries
Basic operations such as addition and multiplication are specified by the
IEEE standard. More complex mathematical operations such as
logarithmic and trigonometric functions are provided by math library
routines. The high-level operations of math library routines are specified
not by the IEEE standard but by individual language standards (such as
ISO/ANSI C) and by programming environment specifications (such as
X/Open and SVID).
C math library functions are located in the libm math library. The libm
functions operate according to the C standard and the latest versions of
the System V Interface Definition (currently SVID3) and of the X/Open
Portability Guide (currently XPG4.2). The XPG4.2 specification is a
superset of the POSIX.1 standard (IEEE Std 1003.1-1990). The SVID3
and XPG4.2 specifications are compatible. The libm library also
supports many functions and macros that the ISO/ANSI C committee
has included in the C9X draft standard (the proposed new ISO/ANSI C
standard).
Fortran and Pascal intrinsic functions are located in the libcl library.
In addition, Basic Linear Algebra Subroutine (BLAS) library routines
are provided in the libblas library (provided with the HP Fortran 90
and HP FORTRAN/9000 products only).
Table 1-1 lists the math libraries available on HP-UX systems and shows
the option you specify to the compiler or linker in order to link in each
library.