This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add nextup and nextdown math functions
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Rajalakshmi Srinivasaraghavan <raji at linux dot vnet dot ibm dot com>, <libc-alpha at sourceware dot org>
- Date: Fri, 20 May 2016 12:16:22 +0000
- Subject: Re: [PATCH] Add nextup and nextdown math functions
- Authentication-results: sourceware.org; auth=none
- References: <1463727477-1909-1-git-send-email-raji at linux dot vnet dot ibm dot com> <247f5741-8e4c-b92b-c9e5-685fc399b72e at redhat dot com>
On Fri, 20 May 2016, Florian Weimer wrote:
> Would it make sense to have a file without defaults, and use #if
> USE_AS_NEXTDOWN (instead of #ifdef USE_AS_NEXTDOWN)?
Yes, that's preferred. But once you deal with correct semantics for
exceptions, implementing these functions in terms of nextafter seems less
of a good idea, so macroizing these functions may be harder.
--
Joseph S. Myers
joseph@codesourcery.com