Home | History | Annotate | Download | only in opts

Lines Matching refs:ag

55     // uint32_t ag = ((c >> 8) & mask) * scale
56 __m128i ag = _mm_srli_epi16(c, 8);
57 ASSERT_EQ(ag, _mm_and_si128(mask, ag)); // ag = _mm_srli_epi16(c, 8) did this for us.
58 ag = _mm_mullo_epi16(ag, s);
60 // (rb & mask) | (ag & ~mask)
62 ag = _mm_andnot_si128(mask, ag);
63 return _mm_or_si128(rb, ag);
76 __m128i ag = _mm_andnot_si128(mask, c);
77 ag = _mm_mulhi_epu16(ag, s); // Alpha and green values are in the higher byte of each word.
78 ag = _mm_andnot_si128(mask, ag);
80 return _mm_or_si128(rb, ag);