From d2f9088822e4c2e69871c936c5de00c69dc73bbc Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 2 Jan 2014 21:59:36 +0100 Subject: Apply my old patch from 2012 for x86_64 --- dotprod.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'dotprod.c') diff --git a/dotprod.c b/dotprod.c index b3be913..826cdab 100644 --- a/dotprod.c +++ b/dotprod.c @@ -41,6 +41,11 @@ void *initdp(signed short coeffs[],int len){ return initdp_sse2(coeffs,len); #endif +#ifdef __x86_64__ + case SSE2: + return initdp_port(coeffs,len); +#endif + #ifdef __VEC__ case ALTIVEC: return initdp_av(coeffs,len); @@ -61,6 +66,12 @@ void freedp(void *p){ case SSE2: return freedp_sse2(p); #endif + +#ifdef __x86_64__ + case SSE2: + return freedp_port(p); +#endif + #ifdef __VEC__ case ALTIVEC: return freedp_av(p); @@ -84,6 +95,11 @@ long dotprod(void *p,signed short a[]){ return dotprod_sse2(p,a); #endif +#ifdef __x86_64__ + case SSE2: + return dotprod_port(p,a); +#endif + #ifdef __VEC__ case ALTIVEC: return dotprod_av(p,a); -- cgit v1.2.3