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

Unified Diff: src/opts/SkNx_neon.h

Issue 1214443002: Color dodge and burn with SkPMFloat. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: reed Created 5 years, 6 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/SkPMFloat.h ('k') | src/opts/SkNx_sse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkNx_neon.h
diff --git a/src/opts/SkNx_neon.h b/src/opts/SkNx_neon.h
index b3198077791204c0e92b0923c1afec2de1fc8167..ccba163e569f540fb09dcf37566c5b861e02c10f 100644
--- a/src/opts/SkNx_neon.h
+++ b/src/opts/SkNx_neon.h
@@ -297,6 +297,13 @@ public:
|| vgetq_lane_u32(v,2) || vgetq_lane_u32(v,3);
}
+ SkNf thenElse(const SkNf& t, const SkNf& e) const {
+ uint32x4_t ci = vreinterpretq_u32_f32(fVec),
+ ti = vreinterpretq_u32_f32(t.fVec),
+ ei = vreinterpretq_u32_f32(e.fVec);
+ return vreinterpretq_f32_u32(vorrq_u32(vandq_u32(ti, ci), vbicq_u32(ei, ci)));
+ }
+
float32x4_t fVec;
};
« no previous file with comments | « src/core/SkPMFloat.h ('k') | src/opts/SkNx_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698