This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3] powerpc: Add a POWER8-optimized version of cosf()
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.