]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/ldexp.3
user_namespaces.7: Minor rewordings of recently added text
[thirdparty/man-pages.git] / man3 / ldexp.3
index 67b93c5b59fa846724b222e20822bddbd8c52419..2d314b3f3f35302903d70f3280420077b069b5a6 100644 (file)
 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
 .\" Modified 2004-10-31 by aeb
 .\"
-.TH LDEXP 3 2015-03-02 "" "Linux Programmer's Manual"
+.TH LDEXP 3 2017-09-15 "" "Linux Programmer's Manual"
 .SH NAME
 ldexp, ldexpf, ldexpl \- multiply floating-point number by integral power of 2
 .SH SYNOPSIS
 .nf
 .B #include <math.h>
-.sp
+.PP
 .BI "double ldexp(double " x ", int " exp );
-.br
 .BI "float ldexpf(float " x ", int " exp );
-.br
 .BI "long double ldexpl(long double " x ", int " exp );
 .fi
-.sp
+.PP
 Link with \fI\-lm\fP.
-.sp
+.PP
 .in -4n
 Feature Test Macro Requirements for glibc (see
 .BR feature_test_macros (7)):
 .in
-.sp
+.PP
 .ad l
 .BR ldexpf (),
 .BR ldexpl ():
 .RS 4
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
-.br
-or
-.I cc\ -std=c99
+_ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
+    || /* Since glibc 2.19: */ _DEFAULT_SOURCE
+    || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
 .RE
 .ad
 .SH DESCRIPTION
-The
-.BR ldexp ()
-function returns the result of multiplying the floating-point number
+These functions return the result of multiplying the floating-point number
 .I x
 by 2 raised to the power
 .IR exp .
 .SH RETURN VALUE
 On success, these functions return
 .IR "x * (2^exp)" .
-
+.PP
 If
 .I exp
 is zero, then
 .I x
 is returned.
-
+.PP
 If
 .I x
 is a NaN,
 a NaN is returned.
-
+.PP
 If
 .I x
 is positive infinity (negative infinity),
 positive infinity (negative infinity) is returned.
-
+.PP
 If the result underflows,
 a range error occurs,
 and zero is returned.
-
+.PP
 If the result overflows,
 a range error occurs,
 and the functions return
@@ -141,8 +135,8 @@ T{
 T}     Thread safety   MT-Safe
 .TE
 .SH CONFORMING TO
-C99, POSIX.1-2001.
-
+C99, POSIX.1-2001, POSIX.1-2008.
+.PP
 The variant returning
 .I double
 also conforms to