diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/ldexp.3 | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/lib/libc/gen/ldexp.3 b/lib/libc/gen/ldexp.3 index 6ebe68d..58ada2f 100644 --- a/lib/libc/gen/ldexp.3 +++ b/lib/libc/gen/ldexp.3 @@ -36,39 +36,32 @@ .\" @(#)ldexp.3 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd April 19, 1994 +.Dd January 23, 2005 .Dt LDEXP 3 .Os .Sh NAME .Nm ldexp .Nd multiply floating-point number by integral power of 2 .Sh LIBRARY -.Lb libc +.Lb libm .Sh SYNOPSIS .In math.h .Ft double .Fn ldexp "double x" "int exp" +.Ft float +.Fn ldexpf "float x" "int exp" .Sh DESCRIPTION The .Fn ldexp -function multiplies a floating-point number by an integral +and +.Fn ldexpf +functions multiply a floating-point number by an integral power of 2. .Sh RETURN VALUES -The -.Fn ldexp -function returns the value of +These functions return the value of .Fa x times 2 raised to the power .Fa exp . -.Pp -If the resultant value would cause an overflow, -the global variable -.Va errno -is set to -.Er ERANGE -and the value -.Dv HUGE -is returned. .Sh SEE ALSO .Xr frexp 3 , .Xr math 3 , @@ -76,5 +69,7 @@ is returned. .Sh STANDARDS The .Fn ldexp -function conforms to -.St -isoC . +and +.Fn ldexpf +functions conform to +.St -isoC-99 . |