]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/lrint.3
dlopen.3: Clarify that constructors are called only when library is first loaded
[thirdparty/man-pages.git] / man3 / lrint.3
index 17f49c3f72d5337f0e68da6b231d6c94ee82f16f..cee7d73b7f62e4e93d041dba1defb27b69b74c9d 100644 (file)
@@ -2,6 +2,7 @@
 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.TH LRINT 3  2010-09-20 "" "Linux Programmer's Manual"
+.TH LRINT 3  2017-09-15 "" "Linux Programmer's Manual"
 .SH NAME
 lrint, lrintf, lrintl, llrint, llrintf, llrintl \- round to nearest integer
 .SH SYNOPSIS
 .nf
 .B #include <math.h>
-.sp
+.PP
 .BI "long int lrint(double " x );
-.br
 .BI "long int lrintf(float " x );
-.br
 .BI "long int lrintl(long double " x );
-.sp
+.PP
 .BI "long long int llrint(double " x );
-.br
 .BI "long long int llrintf(float " x );
-.br
 .BI "long long int llrintl(long double " x );
 .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
 All functions shown above:
 .RS 4
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
-.br
-or
-.I cc\ -std=c99
+_ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
 .RE
 .ad
 .SH DESCRIPTION
 These functions round their argument to the nearest integer value,
 using the current rounding direction (see
 .BR fesetround (3)).
-
-Note that unlike
-.BR rint (3),
-etc., the return type of these functions differs from
+.PP
+Note that unlike the
+.BR rint (3)
+family of functions,
+the return type of these functions differs from
 that of their arguments.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 These functions return the rounded integer value.
-
+.PP
 If
 .I x
 is a NaN or an infinity,
@@ -79,7 +74,7 @@ or the rounded value is too large to be stored in a
 .RI ( "long long"
 in the case of the
 .B ll*
-functions)
+functions),
 then a domain error occurs, and the return value is unspecified.
 .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
 .SH ERRORS
@@ -104,9 +99,27 @@ These functions do not set
 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6798
 .SH VERSIONS
 These functions first appeared in glibc in version 2.1.
-.SH "CONFORMING TO"
-C99, POSIX.1-2001.
-.SH "SEE ALSO"
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw30 lb lb
+l l l.
+Interface      Attribute       Value
+T{
+.BR lrint (),
+.BR lrintf (),
+.BR lrintl (),
+.br
+.BR llrint (),
+.BR llrintf (),
+.BR llrintl ()
+T}     Thread safety   MT-Safe
+.TE
+.SH CONFORMING TO
+C99, POSIX.1-2001, POSIX.1-2008.
+.SH SEE ALSO
 .BR ceil (3),
 .BR floor (3),
 .BR lround (3),