diff options
author | das <das@FreeBSD.org> | 2005-01-23 16:49:40 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2005-01-23 16:49:40 +0000 |
commit | 8f28ae0ca2ca07e95f4b521df36b919c552a9898 (patch) | |
tree | 9b976b8aa5e3a8b060e2eee5ebb93f643da434e7 /lib/libc/gen/frexp.3 | |
parent | 15644d6b3c6deccfa54ed520b4a55ffa88e000d0 (diff) | |
download | FreeBSD-src-8f28ae0ca2ca07e95f4b521df36b919c552a9898.zip FreeBSD-src-8f28ae0ca2ca07e95f4b521df36b919c552a9898.tar.gz |
- Document frexpf().
- Neither frexp() nor frexpf() set errno.
- Although frexp() is in libc for backwards compatibility, frexpf() is
in its proper place in libm. Document both as being in libm.
- The frexp() and frexpf() functions conform to C99.
Diffstat (limited to 'lib/libc/gen/frexp.3')
-rw-r--r-- | lib/libc/gen/frexp.3 | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/libc/gen/frexp.3 b/lib/libc/gen/frexp.3 index 9e9c01c..a5e2edb 100644 --- a/lib/libc/gen/frexp.3 +++ b/lib/libc/gen/frexp.3 @@ -36,31 +36,33 @@ .\" @(#)frexp.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd January 23, 2005 .Dt FREXP 3 .Os .Sh NAME .Nm frexp .Nd convert floating-point number to fractional and integral components .Sh LIBRARY -.Lb libc +.Lb libm .Sh SYNOPSIS .In math.h .Ft double .Fn frexp "double value" "int *exp" +.Ft double +.Fn frexpf "float value" "int *exp" .Sh DESCRIPTION The .Fn frexp -function breaks a floating-point number into a normalized +and +.Fn frexpf +functions break a floating-point number into a normalized fraction and an integral power of 2. -It stores the integer in the +They store the integer in the .Vt int object pointed to by .Fa exp . .Sh RETURN VALUES -The -.Fn frexp -function returns the value +These functions return the value .Va x , such that .Va x @@ -84,5 +86,7 @@ is zero, both parts of the result are zero. .Sh STANDARDS The .Fn frexp -function conforms to -.St -isoC . +and +.Fn frexpf +functions conform to +.St -isoC-99 . |