commit | 98dd4bb2b1b08f04dd5034fe0c69daa15f6cc6da | [log] [tgz] |
---|---|---|
author | Jason Sams <jsams@google.com> | Tue Apr 29 15:30:30 2014 -0700 |
committer | Jason Sams <jsams@google.com> | Tue Apr 29 16:31:32 2014 -0700 |
tree | c5458df7d65b6c09879d32627c4f0f25d8665168 | |
parent | 2535dfcad8cd48f8d9bde76b9ae30961d0489d34 [diff] |
Fix performance regression in color matrix. Previous bug fix which added "len &= 3" was buggy. Change-Id: I32dba6b340ced35a7686243c5d9c468b5ade1ad6
diff --git a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp index 90ce5f8..aec45c3 100644 --- a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp +++ b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
@@ -881,7 +881,7 @@ if (gArchUseSIMD) { if((cp->mOptKernel != NULL) && (len >= 4)) { cp->mOptKernel(out, in, cp->ip, len >> 2); - len &= 3; + len &= ~3; x1 += len; out += outstep * len; in += instep * len;