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

Unified Diff: src/core/SkNx.h

Issue 1167153002: Remove overly-promiscuous SkNx syntax sugar. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: update test 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/SkGeometry.cpp ('k') | src/core/SkRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkNx.h
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index 0f5aa829dfc99a5c271897d2e6bc97c55904b663..d968cad19f6c687b6ef41720425dbe22ddb1fbe2 100644
--- a/src/core/SkNx.h
+++ b/src/core/SkNx.h
@@ -260,17 +260,6 @@ protected:
} // namespace
-// Generic syntax sugar that should work equally well for all implementations.
-template <typename T> T operator - (const T& l) { return T(0) - l; }
-
-template <typename L, typename R> L& operator += (L& l, const R& r) { return (l = l + r); }
-template <typename L, typename R> L& operator -= (L& l, const R& r) { return (l = l - r); }
-template <typename L, typename R> L& operator *= (L& l, const R& r) { return (l = l * r); }
-template <typename L, typename R> L& operator /= (L& l, const R& r) { return (l = l / r); }
-
-template <typename L> L& operator <<= (L& l, int bits) { return (l = l << bits); }
-template <typename L> L& operator >>= (L& l, int bits) { return (l = l >> bits); }
-
// Include platform specific specializations if available.
#ifndef SKNX_NO_SIMD
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
« no previous file with comments | « src/core/SkGeometry.cpp ('k') | src/core/SkRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698