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 Tue, 9 Jan 2018, Szabolcs Nagy wrote:

> note that this typedef in a public header does not work
> on compilers that support _Float128 but not >=gcc-7

It's entirely appropriate to add support for other compilers in 
bits/floatn.h headers (there are several bits/floatn.h variants in glibc - 
if it's a matter of "clang version N supports _Float128 on this set of 
configurations", the headers used by those configurations are the ones 
appropriate to update), where those compilers have some form of _FloatN / 
_FloatNx / __float128 support that could reasonably be used with installed 
glibc headers.

To reiterate the reasoning for not supporting the _Float128 keyword for 
C++ in GCC: standard C++ often tends to use class-based library approaches 
for features that C puts in the language; in particular, C++ chose to use 
std::decimal instead of _Decimal32, _Decimal64, _Decimal128 keywords.  
Thus, it seems plausible that a C++ binding for types corresponding to 
IEEE binary floating-point formats and semantics would also be class-based 
rather than involving new keywords.

-- 
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]