diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-02 21:59:36 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-02 21:59:36 +0100 |
commit | d2f9088822e4c2e69871c936c5de00c69dc73bbc (patch) | |
tree | ad1be98f1d810b581b92f61b1af346f712d84775 /dotprod.c | |
parent | a31630e0d5b9880c716d9004ef4154396ba41ebc (diff) | |
download | ka9q-fec-d2f9088822e4c2e69871c936c5de00c69dc73bbc.tar.gz ka9q-fec-d2f9088822e4c2e69871c936c5de00c69dc73bbc.tar.bz2 ka9q-fec-d2f9088822e4c2e69871c936c5de00c69dc73bbc.zip |
Apply my old patch from 2012 for x86_64
Diffstat (limited to 'dotprod.c')
-rw-r--r-- | dotprod.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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); |