This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] math: support platforms with limited FP rounding orexception support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]