From owner-freebsd-standards Sat Jul 27 10:33:45 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1004237B400 for ; Sat, 27 Jul 2002 10:33:44 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 412BA43E42 for ; Sat, 27 Jul 2002 10:33:43 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g6RHXZYx038019; Sat, 27 Jul 2002 11:33:35 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 27 Jul 2002 11:33:33 -0600 (MDT) Message-Id: <20020727.113333.122289889.imp@bsdimp.com> To: tilman@arved.de Cc: freebsd-standards@FreeBSD.ORG Subject: Re: lrint* ? From: "M. Warner Losh" In-Reply-To: <20020727190945.4d9d0c53.tilman@arved.de> References: <20020727190945.4d9d0c53.tilman@arved.de> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20020727190945.4d9d0c53.tilman@arved.de> Tilman Linneweh 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 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