summaryrefslogtreecommitdiff
path: root/lib/libc/gen/ldexp.3
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-12-12 00:12:48 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-12-12 00:12:48 +0000
commit6e85cd9adb81bab81ea90a901d1669093fe7d5be (patch)
tree91ebfc1aa74a578c6647fa8aa1564a0ba2749dee /lib/libc/gen/ldexp.3
parent34a2174c04d44a11755070b1c7538a65d4654147 (diff)
- document and mlink frexpf, ldexpf, modff added 13 years ago
- document frexpl, ldexpl added recently a tweak and ok jmc@
Diffstat (limited to 'lib/libc/gen/ldexp.3')
-rw-r--r--lib/libc/gen/ldexp.327
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 .