summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-07-28 16:14:12 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-07-28 16:14:12 +0000
commite08be4259306569ce6c3e59161bc8478e4dd2f56 (patch)
treea7f51f77ae9e880bc261469cde7db4fdcd0cbe59 /lib
parentb3aefef4d3b34da2d7dafc119a3227504997822c (diff)
document scalbln, scalblnf, scalblnl
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/Makefile3
-rw-r--r--lib/libm/man/ieee.335
2 files changed, 30 insertions, 8 deletions
diff --git a/lib/libm/Makefile b/lib/libm/Makefile
index 98374352f90..7cbb9492153 100644
--- a/lib/libm/Makefile
+++ b/lib/libm/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.68 2009/07/25 11:38:10 martynas Exp $
+# $OpenBSD: Makefile,v 1.69 2009/07/28 16:14:11 martynas Exp $
# $NetBSD: Makefile,v 1.28 1995/11/20 22:06:19 jtc Exp $
#
# @(#)Makefile 5.1beta 93/09/24
@@ -172,6 +172,7 @@ MLINKS+=exp.3 exp2.3 exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 \
exp.3 pow.3
MLINKS+=hypot.3 cabs.3
MLINKS+=ieee.3 copysign.3 ieee.3 ilogb.3 ieee.3 nextafter.3 ieee.3 scalbn.3
+MLINKS+=ieee.3 scalbln.3 ieee.3 scalblnf.3 ieee.3 scalblnl.3
MLINKS+=logb.3 scalb.3
MLINKS+=logb.3 significand.3
MLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
diff --git a/lib/libm/man/ieee.3 b/lib/libm/man/ieee.3
index 27cd81767a9..e64487fc83c 100644
--- a/lib/libm/man/ieee.3
+++ b/lib/libm/man/ieee.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ieee.3,v 1.17 2008/12/12 00:10:26 martynas Exp $
+.\" $OpenBSD: ieee.3,v 1.18 2009/07/28 16:14:11 martynas Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
.\"
-.Dd $Mdocdate: December 12 2008 $
+.Dd $Mdocdate: July 28 2009 $
.Dt IEEE 3
.Os
.Sh NAME
@@ -40,6 +40,9 @@
.Nm ilogbl ,
.Nm nextafter ,
.Nm nextafterf ,
+.Nm scalbln ,
+.Nm scalblnf ,
+.Nm scalblnl ,
.Nm scalbn ,
.Nm scalbnf ,
.Nm scalbnl
@@ -63,6 +66,12 @@
.Ft float
.Fn nextafterf "float x" "float y"
.Ft double
+.Fn scalbln "double x" "long n"
+.Ft float
+.Fn scalblnf "float x" "long n"
+.Ft long double
+.Fn scalblnl "long double x" "long n"
+.Ft double
.Fn scalbn "double x" "int n"
.Ft float
.Fn scalbnf "float x" "int n"
@@ -117,18 +126,30 @@ The
function is a single precision version of
.Fn nextafter .
.Pp
+.Fn scalbln
+and
.Fn scalbn
-returns
+return
.Fa x Ns \(**(2** Ns Fa n )
computed by exponent manipulation.
The
+.Fn scalblnf
+and
.Fn scalbnf
-function is a single precision version of
-.Fn scalbn .
+functions are single precision versions of
+.Fn scalbln
+and
+.Fn scalbn ,
+respectively.
The
+.Fn scalblnl
+and
.Fn scalbnl
-function is an extended precision version of
-.Fn scalbn .
+functions are extended precision versions of
+.Fn scalbln
+and
+.Fn scalbn ,
+respectively.
.Sh SEE ALSO
.Xr math 3
.Sh STANDARDS