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: RFC: TS 18661-3 and related floating-point interfaces


On 17/01/17 21:57, Joseph Myers wrote:
> The default functions in libm are suitable for a wide range of uses with 
> different requirements, while leaving open the possibility that we can 
> provide alternative versions of functions, e.g. vector versions or 
> __*_noerrno, where useful, and that compilers can inline functions such as 
> sqrt or fma taking due account of the options passed for that compilation.  
> (I've argued that such built-in functions should have variants such as 
> __builtin_sqrt_noerrno for which the compiler knows it doesn't need to 
> insert special code to check for error cases and call the out-of-line 
> function or otherwise set errno in those cases, even if -fno-math-errno is 
> not in use.)

_noerrno functions would be useful

(and it could be the default except for -std=c89,
portable code cannot rely on errno since c99)


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