[PATCH] math: support platforms with limited FP rounding or exception support
Joseph S. Myers
joseph@codesourcery.com
Mon Jul 16 19:16:00 GMT 2012
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
More information about the Libc-alpha
mailing list