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: Drop fenvinline.h - Was: [PATCH] powerpc: Fix feraiseexcept and feclearexcept macros


On Wed, Mar 04, 2020 at 01:06:18PM -0300, Tulio Magno Quites Machado Filho wrote:
> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> 
> > I mean the fenvinline.h altogether and the macro dance to avoid function
> > calls.  It is similar to the ones on string{2,3}.h macros to optimize
> > some function calls and I think it would be worth to avoid such optimization
> > on glibc side and try to leverage them on compiler (as it does for various
> > math functions with builtins).
> 
> That's a nice proposal in the long term, but it's better to involve the GCC
> folks (Segher, Mike and Bill) before taking any decision.
> 
> The proposal here is to provide an inline expansion code in GCC for
> fegetround(), feraiseexcept() and feclearexcept().

Yes, please implement these as compiler builtins!


Segher


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