This is the mail archive of the glibc-bugs@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]

[Bug libc/6981] __STDC_IEC_559__ should not be defined unconditionally


https://sourceware.org/bugzilla/show_bug.cgi?id=6981

--- Comment #13 from Vincent LefÃvre <vincent-srcware at vinc17 dot net> ---
(In reply to joseph@codesourcery.com from comment #12)
> On Sat, 8 Feb 2014, vincent-srcware at vinc17 dot net wrote:
> 
> > But the IEEE 754 standard requires it to be supported (see citation above).
> 
> If so, then C99 and C11 do not provide complete bindings to IEEE 754-1985 
> for all implementation choices conforming to Annex F.

The bindings are complete when FLT_EVAL_METHOD is 0, because in such a case an
operation on float numbers is rounded to the float precision, and an operation
on double numbers is rounded to the double precision. That's why I suggested to
define __STDC_IEC_559__ only when FLT_EVAL_METHOD is 0, until the new TS is
implemented.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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