aboutsummaryrefslogtreecommitdiffstats
path: root/sumsq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sumsq.c')
-rw-r--r--sumsq.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sumsq.c b/sumsq.c
index 9ed6a39..e567c89 100644
--- a/sumsq.c
+++ b/sumsq.c
@@ -15,6 +15,10 @@ unsigned long long sumsq_sse(signed short *,int);
unsigned long long sumsq_sse2(signed short *,int);
#endif
+#ifdef __x86_64__
+unsigned long long sumsq_sse2(signed short *,int);
+#endif
+
#ifdef __VEC__
unsigned long long sumsq_av(signed short *,int);
#endif
@@ -32,6 +36,12 @@ unsigned long long sumsq(signed short *in,int cnt){
return sumsq_sse2(in,cnt);
#endif
+#ifdef __x86_64__
+ case SSE2:
+ return sumsq_port(in,cnt);
+ //return sumsq_sse2(in,cnt);
+#endif
+
#ifdef __VEC__
case ALTIVEC:
return sumsq_av(in,cnt);