Date: Thu, 5 Dec 2002 20:45:00 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> Cc: standards@FreeBSD.ORG Subject: Re: nearbyint* not available in math.h Message-ID: <20021205201041.Y5572-100000@gamplex.bde.org> In-Reply-To: <20021205082414.GA53582@i2.informatik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021205201041.Y5572-100000>