diff options
author | jkh <jkh@FreeBSD.org> | 1995-03-01 05:06:48 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-03-01 05:06:48 +0000 |
commit | 4d71750d42027edbc0501a36f71265917f601d76 (patch) | |
tree | 68d1372161050b27e72d171803683f7f1bc388eb /lib/msun/man/ieee.3 | |
parent | bfcb419e68efbbb96953c29a9b4c15c948b1e11c (diff) | |
download | FreeBSD-src-4d71750d42027edbc0501a36f71265917f601d76.zip FreeBSD-src-4d71750d42027edbc0501a36f71265917f601d76.tar.gz |
Additions from Thomas Graichen to mention each functions' floating point
counterpart.
Submitted by: Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
Diffstat (limited to 'lib/msun/man/ieee.3')
-rw-r--r-- | lib/msun/man/ieee.3 | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/lib/msun/man/ieee.3 b/lib/msun/man/ieee.3 index e8b1583..bdd23cd 100644 --- a/lib/msun/man/ieee.3 +++ b/lib/msun/man/ieee.3 @@ -30,45 +30,67 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $Id: ieee.3,v 1.7 1994/03/10 18:15:07 jtc Exp $ +.\" $Id: ieee.3,v 1.1.1.1 1994/08/19 09:39:42 jkh Exp $ .\" .Dd Feb 25, 1994 .Dt IEEE 3 .Os .Sh NAME .Nm copysign , +.Nm copysignf , .Nm finite , +.Nm finitef , .Nm ilogb , +.Nm ilogbf , .Nm nextafter , +.Nm nextafterf , .Nm remainder , -.Nm scalbn +.Nm remainderf , +.Nm scalbn , +.Nm scalbnf .Nd Functions for IEEE arithmetic .Sh SYNOPSIS .Fd #include <math.h> .Ft double .Fn copysign "double x" "double y" +.Ft float +.Fn copysignf "float x" "float y" .Ft int .Fn finite "double x" +.Ft int +.Fn finitef "float x" .Ft int .Fn ilogb "double x" +.Ft int +.Fn ilogbf "float x" .Ft double .Fn nextafter "double x" "double y" +.Ft float +.Fn nextafterf "float x" "float y" .Ft double .Fn remainder "double x" "double y" +.Ft float +.Fn remainderf "float x" "float y" .Ft double .Fn scalbn "double x" "int n" +.Ft float +.Fn scalbnf "float x" "int n" .Sh DESCRIPTION These functions are required or recommended by .St -ieee754 . .Pp .Fn copysign -returns +and +.Fn copysignf +return .Fa x with its sign changed to .Fa y Ns 's. .Pp .Fn finite -returns the value 1 just when +and +.Fn finitef +return the value 1 just when \-\*(If \*(Lt .Fa x \*(Lt +\*(If; @@ -81,7 +103,9 @@ zero is returned is \*(Na .Pp .Fn ilogb -returns +and +.Fn ilogbf +return .Fa x Ns 's exponent .Fa n , in integer format. @@ -94,13 +118,17 @@ returns .Dv INT_MIN . .Pp .Fn nextafter -returns the next machine representable number from +and +.Fn nextafterf +return the next machine representable number from .Fa x in direction .Fa y . .Pp .Fn remainder -returns the remainder +and +.Fn remainderf +return the remainder .Fa r := .Fa x @@ -138,7 +166,9 @@ and are invalid operations that produce a \*(Na. .Pp .Fn scalbn -returns +and +.Fn scalbnf +return .Fa x Ns \(**(2** Ns Fa n ) computed by exponent manipulation. .Sh SEE ALSO |