diff options
author | 2016-02-21 10:54:19 -0800 | |
---|---|---|
committer | 2016-02-21 10:54:19 -0800 | |
commit | 7c249e531900929c2fe2cdde76619fa6d2538c49 (patch) | |
tree | c6473872ddc5eaac740016ca30d469a7afe44b5d /src/opts/SkNx_neon.h | |
parent | d98ef6377269e3596423225ab922301ed40529a0 (diff) |
SkNx: kth<...>() -> [...]
Just some syntax cleanup. No real change: kth<...>() was calling [...] already.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1714363002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/1714363002
Diffstat (limited to 'src/opts/SkNx_neon.h')
-rw-r--r-- | src/opts/SkNx_neon.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/opts/SkNx_neon.h b/src/opts/SkNx_neon.h index be37baf3cb..1acd7a00f4 100644 --- a/src/opts/SkNx_neon.h +++ b/src/opts/SkNx_neon.h @@ -111,7 +111,6 @@ public: union { float32x2_t v; float fs[2]; } pun = {fVec}; return pun.fs[k&1]; } - template <int k> float kth() const { return (*this)[k]; } bool allTrue() const { auto v = vreinterpret_u32_f32(fVec); @@ -203,7 +202,6 @@ public: union { float32x4_t v; float fs[4]; } pun = {fVec}; return pun.fs[k&3]; } - template <int k> float kth() const { return (*this)[k]; } bool allTrue() const { auto v = vreinterpretq_u32_f32(fVec); @@ -255,7 +253,6 @@ public: union { uint16x4_t v; uint16_t us[4]; } pun = {fVec}; return pun.us[k&3]; } - template <int k> uint16_t kth() const { return (*this)[k]; } SkNx thenElse(const SkNx& t, const SkNx& e) const { return vbsl_u16(fVec, t.fVec, e.fVec); @@ -294,7 +291,6 @@ public: union { uint16x8_t v; uint16_t us[8]; } pun = {fVec}; return pun.us[k&7]; } - template <int k> uint16_t kth() const { return (*this)[k]; } SkNx thenElse(const SkNx& t, const SkNx& e) const { return vbslq_u16(fVec, t.fVec, e.fVec); @@ -352,7 +348,6 @@ public: union { uint8x16_t 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 vbslq_u8(fVec, t.fVec, e.fVec); |