diff options
Diffstat (limited to 'lib/libc/gen/ldexp.3')
-rw-r--r-- | lib/libc/gen/ldexp.3 | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/lib/libc/gen/ldexp.3 b/lib/libc/gen/ldexp.3 index 687a5161c50..f28c5ad665d 100644 --- a/lib/libc/gen/ldexp.3 +++ b/lib/libc/gen/ldexp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ldexp.3,v 1.5 2007/05/31 19:19:28 jmc Exp $ +.\" $OpenBSD: ldexp.3,v 1.6 2008/12/12 00:12:47 martynas Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,25 +31,42 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: December 12 2008 $ .Dt LDEXP 3 .Os .Sh NAME -.Nm ldexp +.Nm ldexp , +.Nm ldexpf , +.Nm ldexpl .Nd multiply floating-point number by integral power of 2 .Sh SYNOPSIS .Fd #include <math.h> .Ft double .Fn ldexp "double x" "int exp" +.Ft float +.Fn ldexpf "float x" "int exp" +.Ft long double +.Fn ldexpl "long double x" "int exp" .Sh DESCRIPTION The .Fn ldexp function multiplies a floating-point number by an integral power of 2. +The +.Fn ldexpf +function is a single precision version of +.Fn ldexp . +The +.Fn ldexpl +function is an extended precision version of +.Fn ldexp . .Sh RETURN VALUES The -.Fn ldexp -function returns the value of +.Fn ldexp , +.Fn ldexpf +and +.Fn ldexpl +functions return the value of .Fa x times 2 raised to the power .Fa exp . |