Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: src/opts/Sk4x_neon.h

Issue 1012573003: aacc + bbdd (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: revert SkMatrix.cpp Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/Sk4x.h ('k') | src/opts/Sk4x_none.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/Sk4x_neon.h
diff --git a/src/opts/Sk4x_neon.h b/src/opts/Sk4x_neon.h
index 892fcb9d41d4df6c8a664ff9ef90a16483469db0..b89c30fcb7b99e18bd3d856710924dab58b403a4 100644
--- a/src/opts/Sk4x_neon.h
+++ b/src/opts/Sk4x_neon.h
@@ -99,6 +99,8 @@ M(Sk4i) greaterThanEqual(const Sk4f& o) const { return vreinterpretq_s32_u32(vcg
M(Sk4f) Min(const Sk4f& a, const Sk4f& b) { return vminq_f32(a.fVec, b.fVec); }
M(Sk4f) Max(const Sk4f& a, const Sk4f& b) { return vmaxq_f32(a.fVec, b.fVec); }
+M(Sk4f) aacc() const { return vtrnq_f32(fVec, fVec).val[0]; }
+M(Sk4f) bbdd() const { return vtrnq_f32(fVec, fVec).val[1]; }
M(Sk4f) badc() const { return vrev64q_f32(fVec); }
// Sk4i Methods
@@ -155,6 +157,8 @@ M(Sk4i) multiply(const Sk4i& o) const { return vmulq_s32(fVec, o.fVec); }
M(Sk4i) Min(const Sk4i& a, const Sk4i& b) { return vminq_s32(a.fVec, b.fVec); }
M(Sk4i) Max(const Sk4i& a, const Sk4i& b) { return vmaxq_s32(a.fVec, b.fVec); }
+M(Sk4i) aacc() const { return vtrnq_s32(fVec, fVec).val[0]; }
+M(Sk4i) bbdd() const { return vtrnq_s32(fVec, fVec).val[1]; }
M(Sk4i) badc() const { return vrev64q_s32(fVec); }
#undef M
« no previous file with comments | « src/core/Sk4x.h ('k') | src/opts/Sk4x_none.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698