From owner-freebsd-standards Thu Dec 5 1:45:22 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 7FBC637B401 for ; Thu, 5 Dec 2002 01:45:21 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E21843EA9 for ; Thu, 5 Dec 2002 01:45:20 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA19305; Thu, 5 Dec 2002 20:44:56 +1100 Date: Thu, 5 Dec 2002 20:45:00 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Volker Stolz Cc: standards@FreeBSD.ORG Subject: Re: nearbyint* not available in math.h In-Reply-To: <20021205082414.GA53582@i2.informatik.rwth-aachen.de> Message-ID: <20021205201041.Y5572-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 5 Dec 2002, Volker Stolz wrote: > Could somebody please comment on the functions nearbyint, nearbyintl > and nearbyintf? > > http://www.opengroup.org/onlinepubs/007904975/functions/nearbyint.html > says they are an extension to ISO C and part of IEEE Std 1003.1-2001. > Is there a workaround to make them available to a port? > (IIRC FreeBSD tends to comply with SUSv2, while nearbyint* turned > up in v3). These are part of ISO C (C99), but C99 is not supported yet. rint() and rintf() can be used instead of nearbyint() and nearbyintf() in most applications since they differ in at most the setting of the inexact exception flag (unless this exception is unmasked). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message