Math Libraries
The Solaris standard math library, libm, contains elementary mathematical functions and support routines required by the various standards to which the Solaris operating environment conforms.
The libsunmath math library contains functions that are not specified by any standard but are useful in numerical software. It also contains many of the functions that are in libm.so.2 but not in libm.so.1. libsunmath is provided as both a shared object and a static archive.
The Solaris 10 OS includes two versions of libm: libm.so.1 and libm.so.2. libm.so.1 provides the functions required by those standards supported by the Solaris 9 OS and earlier versions. libm.so.2 provides the functions required by those standards supported by the Solaris 10 OS (including C99). libm.so.1 is provided for backward compatibility so that programs compiled and linked on the Solaris 9 OS and earlier systems will continue to run unchanged. The contents of libm.so.1 are documented in the section 3M man pages on those systems. The remainder of this chapter refers to libm.so.2. See the ld(1) and compiler manual pages for more information about dynamic linking and the options and environment variables that determine which shared objects are loaded when a program is run.
The libmvec library provides routines that evaluate common mathematical functions for an entire vector of arguments. An application may invoke the routines in libmvec explicitly, or the compiler may invoke these routines when the
-xvector flag is used.The libmopt library provides faster versions of some of the functions in libm and libsunmath. libmopt is provided as a static archive only. The routines contained in libmopt replace corresponding routines in libm. Typically, the libmopt versions are noticeably faster. Unlike the libm versions, however, which support any of ANSI/POSIX.., SVID, X/Open, or C99/IEEE-style treatment of exceptional cases, the libmopt routines only support C99/IEEE-style handling of these cases.
The Sun Studio C++ compiler provides a C++ interface to the C++ interval arithmetic library. To use the C++ interval arithmetic features, add the #include
Support for intrinsic INTERVAL data types is a feature in the Sun Studio Fortran 95 compiler. Two compiler flags, -xia and -xinterval, tell the compiler to recognize interval-specific language extensions and to generate executable interval code.
Describes the floating-point environment supported by software and hardware on SPARC.. and x86 platforms running the Solaris[tm] operating environment. For information on the Sun Studio 11 Math Libraries.
|
|
|
| ||||||||||||