[PATCH] powerpc: Add a POWER8-optimized version of powf()

Joseph Myers joseph@codesourcery.com
Fri Jun 2 16:28:00 GMT 2017


On Fri, 2 Jun 2017, Wilco Dijkstra wrote:

> >> As it happens Szabolcs wrote a prototype powf that is not only more 
> >> accurate but also 4x faster, all using generic code. With these 
> >> gains, target specific math functions will be obsolete...
> >
> > Is that forthcoming?
> 
> Yes - after they are published under a less restrictive license. In 
> GLIBC we'll need to agree on how to deal with the wrappers and establish 
> a good place to add new math functions.

It's fine to put float functions implemented using double internally in 
sysdeps/ieee754/flt-32; some already use double internally.  For functions 
not using type-generic templates, the sysdeps/ieee754 structure seems 
reasonable to me (given the need to handle different long double formats), 
although code outside there may also assume that float is binary32 and 
double is binary64.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list