HP-UX Floating-Point Guide
210 Appendix A
The C Math Library
C Math Library Tables
double lgamma(double x); Returns logarithm of the absolute value of
the gamma function of x.
double lgamma_r(double x,
int *sign);
Returns logarithm of the absolute value of
the gamma function of x (reentrant
version of lgamma).
long long llrint(double x); Returns x rounded to the nearest long
long value, using the current rounding
direction.
long long llround(double x); Returns x rounded to the nearest long
long value, rounding halfway cases away
from zero, regardless of the current
rounding direction.
double log(double x); Returns natural logarithm of x. (Millicode
version available)
double log10(double x); Returns base 10 logarithm of x. (Millicode
version available)
float log10f(float x); Returns base 10 logarithm of x.
double log1p(double x); Returns log(1 + x).
double log2(double x); Returns base 2 logarithm of x.
float log2f(float x); Returns base 2 logarithm of x.
double logb(double x); Returns the exponent of x as an
integer-valued double-precision number;
formally, the integral part of log
2
|x|.
float logf(float x); Returns natural logarithm of x. (Millicode
version available)
long lrint(double x); Returns x rounded to the nearest long
value, using the current rounding
direction.
Function What It Does