From b3f6806f499d9f478bcdb480cbae0b5307443c08 Mon Sep 17 00:00:00 2001 From: das Date: Sun, 23 Jan 2005 16:49:49 +0000 Subject: - Document ldexpf(). - Although ldexp() is in libc for backwards compatibility, ldexpf() is in its proper place in libm. Document both as being in libm. - The ldexp() and ldexpf() functions conform to C99. --- lib/libc/gen/ldexp.3 | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'lib/libc') 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 . -- cgit v1.1