aboutsummaryrefslogtreecommitdiffstats
path: root/dotprod.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-02 21:59:36 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-02 21:59:36 +0100
commitd2f9088822e4c2e69871c936c5de00c69dc73bbc (patch)
treead1be98f1d810b581b92f61b1af346f712d84775 /dotprod.c
parenta31630e0d5b9880c716d9004ef4154396ba41ebc (diff)
downloadka9q-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.c16
1 files changed, 16 insertions, 0 deletions
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);