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: Adding __float128 (i.e TS 18661-3)


On Tue, 7 Jun 2016, Steven Munroe wrote:

> And we would like to avoid compile errors due to missing compiler
> options and associated type randomization.

Compile errors are fine - they make the problem obvious.  What should be 
avoided is cases where code quietly gets built with the wrong type without 
producing errors, but does the wrong thing at runtime.  (And there are a 
range of possible solutions to avoid that, including e.g. #error for the 
wrong long double format in a header used in the ldbl-128ibm code.)

> Separately we do use the printf plugin API to support _Decimal Float and
> vector printf and provide these to Linux on Power customers. It is fair
> to assume that we would provide a 'Q' format plugin for early adopters
> of __float128. 

Sure, and if people want to use scanf like that I think it would be 
reasonable to add scanf hooks support similar to the printf hooks support.

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