Searched refs:SK_G16_MASK (Results 1 – 2 of 2) sorted by relevance
247 #define SK_G16_MASK ((1 << SK_G16_BITS) - 1) macro251 #define SkGetPackedG16(color) (((unsigned)(color) >> SK_G16_SHIFT) & SK_G16_MASK)255 #define SkG16Assert(g) SkASSERT((unsigned)(g) <= SK_G16_MASK)260 SkASSERT(g <= SK_G16_MASK); in SkPackRGB16()267 #define SK_G16_MASK_IN_PLACE (SK_G16_MASK << SK_G16_SHIFT)344 SkASSERT(SkGetPackedG16(a) + SkGetPackedG16(b) <= SK_G16_MASK); in SkRGB16Add()630 …e SkPacked32ToG16(c) (((unsigned)(c) >> (SK_G32_SHIFT + SK_G32_BITS - SK_G16_BITS)) & SK_G16_MASK)635 unsigned g = ((c >> (SK_G32_SHIFT + (8 - SK_G16_BITS))) & SK_G16_MASK) << SK_G16_SHIFT; in SkPixel32ToPixel16()
182 g = _mm_and_si128(g, _mm_set1_epi32(SK_G16_MASK)); in SkPacked16ToG32_SSE2()220 g1 = _mm_and_si128(g1, _mm_set1_epi32(SK_G16_MASK)); in SkPixel32ToPixel16_ToU16_SSE2()223 g2 = _mm_and_si128(g2, _mm_set1_epi32(SK_G16_MASK)); in SkPixel32ToPixel16_ToU16_SSE2()