Searched refs:SK_R16_MASK (Results 1 – 4 of 4) sorted by relevance
246 #define SK_R16_MASK ((1 << SK_R16_BITS) - 1) macro250 #define SkGetPackedR16(color) (((unsigned)(color) >> SK_R16_SHIFT) & SK_R16_MASK)254 #define SkR16Assert(r) SkASSERT((unsigned)(r) <= SK_R16_MASK)259 SkASSERT(r <= SK_R16_MASK); in SkPackRGB16()266 #define SK_R16_MASK_IN_PLACE (SK_R16_MASK << SK_R16_SHIFT)343 SkASSERT(SkGetPackedR16(a) + SkGetPackedR16(b) <= SK_R16_MASK); in SkRGB16Add()629 …e SkPacked32ToR16(c) (((unsigned)(c) >> (SK_R32_SHIFT + SK_R32_BITS - SK_R16_BITS)) & SK_R16_MASK)634 unsigned r = ((c >> (SK_R32_SHIFT + (8 - SK_R16_BITS))) & SK_R16_MASK) << SK_R16_SHIFT; in SkPixel32ToPixel16()
173 r = _mm_and_si128(r, _mm_set1_epi32(SK_R16_MASK)); in SkPacked16ToR32_SSE2()211 r1 = _mm_and_si128(r1, _mm_set1_epi32(SK_R16_MASK)); in SkPixel32ToPixel16_ToU16_SSE2()214 r2 = _mm_and_si128(r2, _mm_set1_epi32(SK_R16_MASK)); in SkPixel32ToPixel16_ToU16_SSE2()
586 __m128i r16_mask = _mm_set1_epi16(SK_R16_MASK); in S32A_D565_Opaque_SSE2()860 __m128i r16_mask = _mm_set1_epi16(SK_R16_MASK); in S32A_D565_Opaque_Dither_SSE2()
537 store(tail, SkNx_cast<uint16_t>( SkNf_round(r, SK_R16_MASK) << SK_R16_SHIFT in STAGE_CTX()