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: [PATCH v10 1/12] PPC64: Add libmvec SIMD double-precision cosine function


GT <tnggil@protonmail.com> writes:

> diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile b/sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
> index 39b557604c..d713b61431 100644
> --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
> +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
> @@ -42,3 +42,20 @@ CFLAGS-e_hypotf-power7.c = -mcpu=power7
>  CFLAGS-s_modf-ppc64.c += -fsignaling-nans
>  CFLAGS-s_modff-ppc64.c += -fsignaling-nans
>  endif
> +
> +ifeq ($(subdir),mathvec)
> +libmvec-sysdep_routines += vec_d_cos2_vsx
> +CFLAGS-vec_d_cos2_vsx.c += -mabi=altivec -maltivec -mvsx

-mabi=altivec isn't required on 64 bits, but it doesn't hurt to specify.

LGTM.  The patch has been updated in branch tuliom/libmvec.

Thanks!

-- 
Tulio Magno


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