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: Add _Float128 function aliases [committed]


On 09/01/18 18:11, Joseph Myers wrote:
> On Tue, 9 Jan 2018, Szabolcs Nagy wrote:
>> maybe check for __FLT128_MANT_DIG==113 instead of gcc-7?
>> clang defines this macro too.
> 
> Sure, that would be appropriate (in conjunction with the existing 
> __cplusplus tests - GCC defines __FLT128_MANT_DIG for C++ without 
> supporting the _Float128 type name or constant suffixes in that case), if 
> clang versions / configurations supporting _Float128 define 
> __FLT128_MANT_DIG while those not supporting _Float128 don't.
> 
> That would seem appropriate for all bits/floatn.h headers with any 
> _Float128 support (subject to being accurate for each thing being 
> conditioned - some __GNUC_PREREQ conditionals are for uses of f128 
> constant suffixes, or __builtin_*f128 built-in functions, so you should 
> make sure those features are supported by relevant clang versions), not 
> just the ldbl-128 version.
> 

i opened https://sourceware.org/bugzilla/show_bug.cgi?id=22700
i might not have time to fix and test it.


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