This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [PATCH] PR11706, optimize std::pow(T, int)


Gabriel Dos Reis wrote:

| Please correct me if I'm wrong: probably the optimal solution (besides
| generically improving the treatment of loops with constant bounds) would
| involve dispatching integer powers of float, double, long double to
| appropriate builtins (using template specializations), otherwise, using
| the generic loop.
| | Unfortunately, the above builtins are still missing :-( Is there a PR open
| tracking this issue? Shall I open one?


I don't know of any PR open for that. However, for the issue at hand,
the fix is to have __buitin_powi and such. See past discussions with
Roger Sayle.


Indeed, this is what I mean: we badly need those builtins. I'll check, and, in case
there isn't a corresponding PR, will open one (CC you and Roger ;)


Paolo.


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