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

Unified Diff: src/opts/SkNx_sse.h

Issue 1714363002: SkNx: kth<...>() -> [...] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: the rest Created 4 years, 10 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/SkNx_neon.h ('k') | src/opts/SkXfermode_opts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkNx_sse.h
diff --git a/src/opts/SkNx_sse.h b/src/opts/SkNx_sse.h
index be521a1a311e666f9b67a01ca80038ec3f75c487..b6da080317912fec77864bc9d69e6113b4f69a93 100644
--- a/src/opts/SkNx_sse.h
+++ b/src/opts/SkNx_sse.h
@@ -65,7 +65,6 @@ public:
union { __m128 v; float fs[4]; } pun = {fVec};
return pun.fs[k&1];
}
- template <int k> float kth() const { return (*this)[k]; }
bool allTrue() const { return 0xff == (_mm_movemask_epi8(_mm_castps_si128(fVec)) & 0xff); }
bool anyTrue() const { return 0x00 != (_mm_movemask_epi8(_mm_castps_si128(fVec)) & 0xff); }
@@ -117,7 +116,6 @@ public:
union { __m128 v; float fs[4]; } pun = {fVec};
return pun.fs[k&3];
}
- template <int k> float kth() const { return (*this)[k]; }
bool allTrue() const { return 0xffff == _mm_movemask_epi8(_mm_castps_si128(fVec)); }
bool anyTrue() const { return 0x0000 != _mm_movemask_epi8(_mm_castps_si128(fVec)); }
@@ -159,7 +157,6 @@ public:
union { __m128i v; int is[4]; } pun = {fVec};
return pun.is[k&3];
}
- template <int k> int kth() const { return (*this)[k]; }
__m128i fVec;
};
@@ -188,7 +185,6 @@ public:
union { __m128i v; uint16_t us[8]; } pun = {fVec};
return pun.us[k&3];
}
- template <int k> uint16_t kth() const { return (*this)[k]; }
__m128i fVec;
};
@@ -232,7 +228,6 @@ public:
union { __m128i v; uint16_t us[8]; } pun = {fVec};
return pun.us[k&7];
}
- template <int k> uint16_t kth() const { return (*this)[k]; }
__m128i fVec;
};
@@ -284,7 +279,6 @@ public:
union { __m128i v; uint8_t us[16]; } pun = {fVec};
return pun.us[k&15];
}
- template <int k> uint8_t kth() const { return (*this)[k]; }
SkNx thenElse(const SkNx& t, const SkNx& e) const {
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
« no previous file with comments | « src/opts/SkNx_neon.h ('k') | src/opts/SkXfermode_opts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698