summaryrefslogtreecommitdiff
path: root/lib
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
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')
-rw-r--r--lib/libc/gen/Makefile.inc5
-rw-r--r--lib/libc/gen/frexp.327
-rw-r--r--lib/libc/gen/ldexp.327
-rw-r--r--lib/libc/gen/modf.317
4 files changed, 61 insertions, 15 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 92e82753fe7..6a55a7d1f2c 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.43 2008/07/29 18:19:17 martynas Exp $
+# $OpenBSD: Makefile.inc,v 1.44 2008/12/12 00:12:47 martynas Exp $
# gen sources
.PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/gen ${LIBCSRCDIR}/gen
@@ -89,6 +89,7 @@ MLINKS+=fpclassify.3 finite.3 fpclassify.3 finitef.3 fpclassify.3 isfinite.3 \
MLINKS+=fpgetmask.3 fpgetround.3 fpgetmask.3 fpgetsticky.3 \
fpgetmask.3 fpsetmask.3 fpgetmask.3 fpsetround.3 \
fpgetmask.3 fpsetsticky.3
+MLINKS+=frexp.3 frexpf.3 frexp.3 frexpl.3
MLINKS+=fts.3 fts_open.3 fts.3 fts_read.3 fts.3 fts_children.3 \
fts.3 fts_set.3 fts.3 fts_close.3
MLINKS+=ftw.3 nftw.3
@@ -114,11 +115,13 @@ MLINKS+=getusershell.3 endusershell.3 getusershell.3 setusershell.3
MLINKS+=glob.3 globfree.3
MLINKS+=isgreater.3 isgreaterequal.3 isgreater.3 isless.3 isgreater.3 \
islessequal.3 isgreater.3 islessgreater.3 isgreater.3 isunordered.3
+MLINKS+=ldexp.3 ldexpf.3 ldexp.3 ldexpl.3
MLINKS+=login_cap.3 login_getclass.3 login_cap.3 login_getstyle.3 login_cap.3 \
login_getcapbool.3 login_cap.3 login_getcapnum.3 login_cap.3 \
login_getcapsize.3 login_cap.3 login_getcapstr.3 login_cap.3 \
login_getcaptime.3 login_cap.3 login_close.3 login_cap.3 \
secure_path.3 login_cap.3 setclasscontext.3 login_cap.3 setusercontext.3
+MLINKS+=modf.3 modff.3
MLINKS+=popen.3 pclose.3
MLINKS+=psignal.3 sys_siglist.3 psignal.3 sys_signame.3
MLINKS+=pwcache.3 user_from_uid.3 pwcache.3 group_from_gid.3
diff --git a/lib/libc/gen/frexp.3 b/lib/libc/gen/frexp.3
index 16977d0f31d..984b164d259 100644
--- a/lib/libc/gen/frexp.3
+++ b/lib/libc/gen/frexp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: frexp.3,v 1.8 2007/05/31 19:19:28 jmc Exp $
+.\" $OpenBSD: frexp.3,v 1.9 2008/12/12 00:12:47 martynas Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,16 +31,22 @@
.\" 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 FREXP 3
.Os
.Sh NAME
-.Nm frexp
+.Nm frexp ,
+.Nm frexpf ,
+.Nm frexpl
.Nd convert floating-point number to fractional and integral components
.Sh SYNOPSIS
.Fd #include <math.h>
.Ft double
.Fn frexp "double value" "int *exp"
+.Ft float
+.Fn frexpf "float value" "int *exp"
+.Ft long double
+.Fn frexpl "long double value" "int *exp"
.Sh DESCRIPTION
The
.Fn frexp
@@ -50,10 +56,21 @@ It stores the integer in the
.Li int
object pointed to by
.Fa exp .
+The
+.Fn frexpf
+function is a single precision version of
+.Fn frexp .
+The
+.Fn frexpl
+function is an extended precision version of
+.Fn frexp .
.Sh RETURN VALUES
The
-.Fn frexp
-function returns the value
+.Fn frexp ,
+.Fn frexpf
+and
+.Fn frexpl
+functions return the value
.Li x ,
such that
.Li x
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 .
diff --git a/lib/libc/gen/modf.3 b/lib/libc/gen/modf.3
index bc60ce9516e..12cba1fab0e 100644
--- a/lib/libc/gen/modf.3
+++ b/lib/libc/gen/modf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: modf.3,v 1.6 2007/05/31 19:19:28 jmc Exp $
+.\" $OpenBSD: modf.3,v 1.7 2008/12/12 00:12:47 martynas Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,16 +31,19 @@
.\" 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 MODF 3
.Os
.Sh NAME
-.Nm modf
+.Nm modf ,
+.Nm modff
.Nd extract signed integral and fractional values from floating-point number
.Sh SYNOPSIS
.Fd #include <math.h>
.Ft double
.Fn modf "double value" "double *iptr"
+.Ft float
+.Fn modff "float value" "float *iptr"
.Sh DESCRIPTION
The
.Fn modf
@@ -52,10 +55,16 @@ It stores the integral part as a
.Li double
in the object pointed to by
.Fa iptr .
+The
+.Fn modff
+function is a single precision version of
+.Fn modf .
.Sh RETURN VALUES
The
.Fn modf
-function returns the signed fractional part of
+and
+.Fn modff
+functions return the signed fractional part of
.Fa value .
.Sh SEE ALSO
.Xr frexp 3 ,