summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuIntrinsicConvolve5x5.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-08-06 13:49:25 -0700
committerJason Sams <jsams@google.com>2013-08-06 13:49:25 -0700
commitf5ef8df639ba6363aa5d546e57ce872d04144cb6 (patch)
tree177a05e86b2244cc98deb492735b0491d3360403 /cpu_ref/rsCpuIntrinsicConvolve5x5.cpp
parent1033b5974b02238c2413119963408a1ad65d5c93 (diff)
downloadrs-f5ef8df639ba6363aa5d546e57ce872d04144cb6.tar.gz
Neon detection for RS SDK compat lib.
Change-Id: I3887158c7ec97ba116c28dc7b1d0c789b81fae60
Diffstat (limited to 'cpu_ref/rsCpuIntrinsicConvolve5x5.cpp')
-rw-r--r--cpu_ref/rsCpuIntrinsicConvolve5x5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu_ref/rsCpuIntrinsicConvolve5x5.cpp b/cpu_ref/rsCpuIntrinsicConvolve5x5.cpp
index 112f377b..b4932bd9 100644
--- a/cpu_ref/rsCpuIntrinsicConvolve5x5.cpp
+++ b/cpu_ref/rsCpuIntrinsicConvolve5x5.cpp
@@ -153,8 +153,8 @@ void RsdCpuScriptIntrinsicConvolve5x5::kernel(const RsForEachStubParamStruct *p,
x1++;
}
-#if defined(ARCH_ARM_HAVE_NEON)
- if((x1 + 3) < x2) {
+#if defined(ARCH_ARM_HAVE_VFP)
+ if(gArchUseSIMD && ((x1 + 3) < x2)) {
uint32_t len = (x2 - x1 - 3) >> 1;
rsdIntrinsicConvolve5x5_K(out, py0, py1, py2, py3, py4, cp->ip, len);
out += len << 1;