This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] math: support platforms with limited FP rounding orexception support
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Chris Metcalf <cmetcalf at tilera dot com>, Bruno Haible <bruno at clisp dot org>,<libc-alpha at sourceware dot org>
- Date: Mon, 16 Jul 2012 19:16:00 +0000
- Subject: Re: [PATCH] math: support platforms with limited FP rounding orexception support
- References: <Pine.LNX.4.64.1205131001470.23868@digraph.polyomino.org.uk><4FAFA5D6.4020704@tilera.com> <Pine.LNX.4.64.1205151043180.31080@digraph.polyomino.org.uk><201205151641.q4FGflm6003865@gx-1.internal.tilera.com> <m24np7zlx7.fsf@igel.home><Pine.LNX.4.64.1207161833520.8355@digraph.polyomino.org.uk> <m2vchny1vr.fsf@igel.home>
On Mon, 16 Jul 2012, Andreas Schwab wrote:
> "Joseph S. Myers" <joseph@codesourcery.com> writes:
>
> > It *is* required to be suitable for #if directives;
>
> Where is that specified?
In C11, 7.1.4 paragraph 1 says "All object-like macros listed as expanding
to integer constant expressions shall additionally be suitable for use in
#if preprocessing directives.", 7.6 paragraph 6 says that the FE_* macros
for each exception are integer constant expressions and paragraph 7 says
that FE_ALL_EXCEPT is the OR of those macros (which implies it is an
integer constant expression usable in #if, since the individual macros
are).
--
Joseph S. Myers
joseph@codesourcery.com