Lines Matching refs:count
48 void sk_memset16_portable(uint16_t dst[], uint16_t value, int count) in sk_memset16_portable() argument
50 SkASSERT(dst != NULL && count >= 0); in sk_memset16_portable()
52 if (count <= 0) in sk_memset16_portable()
56 if (count < 8) in sk_memset16_portable()
60 } while (--count != 0); in sk_memset16_portable()
68 count -= 1; in sk_memset16_portable()
75 int sixteenlongs = count >> 5; in sk_memset16_portable()
83 count &= 31; in sk_memset16_portable()
89 int longs = count >> 1; in sk_memset16_portable()
100 if (count & 1) in sk_memset16_portable()
104 void sk_memset32_portable(uint32_t dst[], uint32_t value, int count) in sk_memset32_portable() argument
106 SkASSERT(dst != NULL && count >= 0); in sk_memset32_portable()
109 int sixteenlongs = count >> 4; in sk_memset32_portable()
115 count &= 15; in sk_memset32_portable()
119 if (count) in sk_memset32_portable()
123 } while (--count != 0); in sk_memset32_portable()
128 static void sk_memset16_stub(uint16_t dst[], uint16_t value, int count) in sk_memset16_stub() argument
132 sk_memset16(dst, value, count); in sk_memset16_stub()
137 static void sk_memset32_stub(uint32_t dst[], uint32_t value, int count) in sk_memset32_stub() argument
141 sk_memset32(dst, value, count); in sk_memset32_stub()
181 int count = 0; in SkUTF8_CountUnichars() local
190 count += 1; in SkUTF8_CountUnichars()
192 return count; in SkUTF8_CountUnichars()
199 int count = 0; in SkUTF8_CountUnichars() local
205 count += 1; in SkUTF8_CountUnichars()
207 return count; in SkUTF8_CountUnichars()
288 size_t count = 1; in SkUTF8_FromUnichar() local
292 while (uni > 0x7F >> count) in SkUTF8_FromUnichar()
296 count += 1; in SkUTF8_FromUnichar()
302 utf8 += count; in SkUTF8_FromUnichar()
303 while (p < tmp + count - 1) in SkUTF8_FromUnichar()
305 *--utf8 = (char)(~(0xFF >> count) | uni); in SkUTF8_FromUnichar()
309 return count; in SkUTF8_FromUnichar()
318 int count = 0; in SkUTF16_CountUnichars() local
328 count += 1; in SkUTF16_CountUnichars()
330 return count; in SkUTF16_CountUnichars()
338 int count = 0; in SkUTF16_CountUnichars() local
349 count += 1; in SkUTF16_CountUnichars()
351 return count; in SkUTF16_CountUnichars()