Date: Sat, 27 Jul 2002 11:33:33 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: tilman@arved.de Cc: freebsd-standards@FreeBSD.ORG Subject: Re: lrint* ? Message-ID: <20020727.113333.122289889.imp@bsdimp.com> In-Reply-To: <20020727190945.4d9d0c53.tilman@arved.de> References: <20020727190945.4d9d0c53.tilman@arved.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20020727190945.4d9d0c53.tilman@arved.de>
Tilman Linneweh <tilman@arved.de> writes:
: During porting a Program, I noticed that there are no lrint* functions
: in libm.
: AFAI googled, lrint* Functions are part of C99. So i think this should
: be put on the TODO list of the C99-project.
Looks like you are right. I'll leave it to others to add it to the
list, but here's the section from the standard:
7.12.9.5 The lrint and llrint functions
Synopsis
[#1]
#include <math.h>
long int lrint(double x);
long int lrintf(float x);
long int lrintl(long double x);
long long int llrint(double x);
long long int llrintf(float x);
long long int llrintl(long double x);
Description
[#2] The lrint and llrint functions round their argument to
the nearest integer value, rounding according to the current
rounding direction. If the rounded value is outside the
range of the return type, the numeric result is unspecified.
A range error may occur if the magnitude of x is too large.
Returns
[#3] The lrint and llrint functions return the rounded
integer value.
Warner
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020727.113333.122289889.imp>
