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

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu May 18 14:28:00 GMT 2017



On 17/05/2017 18:40, Tulio Magno Quites Machado Filho wrote:
> Paul Clarke <pc@us.ibm.com> writes:
> 
>> This implementation is based on the one already used at
>> sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S.
>>
>> 2017-05-11  Paul A. Clarke  <pc@us.ibm.com>
>>
>> 	* sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
>> 	[$(subdir) = math] (libm-sysdep_routines): Add s_cosf-power8 and
>> 	s_cosf-ppc64.
>> 	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: New file.
>> 	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
>> 	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
>> 	* sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
> 
> LGTM too.
> Pushed as b2980e3c545294d71b3960ce74b6148e274d2488.
> 

Do you have a base C version for this assemble optimized one?  It could be
something arch mantainer could take a look and if it is the case we can
use as default implementation.



More information about the Libc-alpha mailing list