diff options
Diffstat (limited to 'src/opts/Sk4px_SSE2.h')
-rw-r--r-- | src/opts/Sk4px_SSE2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opts/Sk4px_SSE2.h b/src/opts/Sk4px_SSE2.h index 74ccffc277..3809c5e47b 100644 --- a/src/opts/Sk4px_SSE2.h +++ b/src/opts/Sk4px_SSE2.h @@ -31,6 +31,11 @@ inline Sk4px::Wide Sk4px::widenHi() const { _mm_unpackhi_epi8(_mm_setzero_si128(), this->fVec)); } +inline Sk4px::Wide Sk4px::widenLoHi() const { + return Sk16h(_mm_unpacklo_epi8(this->fVec, this->fVec), + _mm_unpackhi_epi8(this->fVec, this->fVec)); +} + inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { return this->widenLo() * Sk4px(other).widenLo(); } |