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

Unified Diff: src/opts/Sk2x_none.h

Issue 1027753003: Add divide to Sk2x, use native vdiv and vsqrt on ARM 64. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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/opts/Sk2x_neon.h ('k') | src/opts/Sk2x_sse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/Sk2x_none.h
diff --git a/src/opts/Sk2x_none.h b/src/opts/Sk2x_none.h
index 12daffd72fabd1e199903039e92ec77522f0a06a..65cc6703fbd88b942235d68f7c66f8ada2b16f43 100644
--- a/src/opts/Sk2x_none.h
+++ b/src/opts/Sk2x_none.h
@@ -43,6 +43,9 @@ M(Sk2x<T>) subtract(const Sk2x<T>& o) const {
M(Sk2x<T>) multiply(const Sk2x<T>& o) const {
return Sk2x<T>(fVec[0] * o.fVec[0], fVec[1] * o.fVec[1]);
}
+M(Sk2x<T>) divide(const Sk2x<T>& o) const {
+ return Sk2x<T>(fVec[0] / o.fVec[0], fVec[1] / o.fVec[1]);
+}
M(Sk2x<T>) Min(const Sk2x<T>& a, const Sk2x<T>& b) {
return Sk2x<T>(SkTMin(a.fVec[0], b.fVec[0]), SkTMin(a.fVec[1], b.fVec[1]));
« no previous file with comments | « src/opts/Sk2x_neon.h ('k') | src/opts/Sk2x_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698