summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/ieee.3
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-06-20 09:25:27 +0000
committerdas <das@FreeBSD.org>2004-06-20 09:25:27 +0000
commitdd81b94d1c7301a13decfd4320464121126e3952 (patch)
tree8fbea8c3c6c5a1745baeae5bd6ea5da41b0e08b5 /lib/msun/man/ieee.3
parentd711478366fb98d9f5712539d1662be350da961e (diff)
downloadFreeBSD-src-dd81b94d1c7301a13decfd4320464121126e3952.zip
FreeBSD-src-dd81b94d1c7301a13decfd4320464121126e3952.tar.gz
Add trivial implementations of scalbln() and scalblnf().
These routines are specified in C99 for the sake of architectures where an int isn't big enough to represent the full range of floating-point exponents. However, even the 128-bit long double format has an exponent smaller than 15 bits, so for all practical purposes, scalbln() and scalblnf() are aliases for scalbn() and scalbnf(), respectively.
Diffstat (limited to 'lib/msun/man/ieee.3')
-rw-r--r--lib/msun/man/ieee.319
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/msun/man/ieee.3 b/lib/msun/man/ieee.3
index fa81b06..9cd9e94 100644
--- a/lib/msun/man/ieee.3
+++ b/lib/msun/man/ieee.3
@@ -32,7 +32,7 @@
.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
.\" $FreeBSD$
.\"
-.Dd February 25, 1994
+.Dd June 20, 2004
.Dt IEEE 3
.Os
.Sh NAME
@@ -47,6 +47,8 @@
.Nm nextafterf ,
.Nm remainder ,
.Nm remainderf ,
+.Nm scalbln ,
+.Nm scalblnf ,
.Nm scalbn ,
.Nm scalbnf
.Nd functions for IEEE arithmetic
@@ -77,6 +79,10 @@
.Ft float
.Fn remainderf "float x" "float y"
.Ft double
+.Fn scalbln "double x" "long n"
+.Ft float
+.Fn scalblnf "float x" "long n"
+.Ft double
.Fn scalbn "double x" "int n"
.Ft float
.Fn scalbnf "float x" "int n"
@@ -173,7 +179,9 @@ and
.Fn remainder \*(If 0
are invalid operations that produce a \*(Na.
.Pp
-.Fn scalbn
+.Fn scalbln ,
+.Fn scalblnf ,
+.Fn scalbn ,
and
.Fn scalbnf
return
@@ -187,8 +195,11 @@ The
functions appeared in
.Bx 4.3 .
The
-.Fn copysignl
-function first appeared in
+.Fn copysignl ,
+.Fn scalbln ,
+and
+.Fn scalblnf
+functions first appeared in
.Fx 5.3 .
.Sh STANDARDS
.St -ieee754
OpenPOWER on IntegriCloud