• Home
  • Raw
  • Download

Lines Matching refs:dst

21 #define assign_16_longs(dst, value)             \
23 (dst)[0] = value; (dst)[1] = value; \
24 (dst)[2] = value; (dst)[3] = value; \
25 (dst)[4] = value; (dst)[5] = value; \
26 (dst)[6] = value; (dst)[7] = value; \
27 (dst)[8] = value; (dst)[9] = value; \
28 (dst)[10] = value; (dst)[11] = value; \
29 (dst)[12] = value; (dst)[13] = value; \
30 (dst)[14] = value; (dst)[15] = value; \
33 #define assign_16_longs(dst, value) \ argument
35 *(dst)++ = value; *(dst)++ = value; \
36 *(dst)++ = value; *(dst)++ = value; \
37 *(dst)++ = value; *(dst)++ = value; \
38 *(dst)++ = value; *(dst)++ = value; \
39 *(dst)++ = value; *(dst)++ = value; \
40 *(dst)++ = value; *(dst)++ = value; \
41 *(dst)++ = value; *(dst)++ = value; \
42 *(dst)++ = value; *(dst)++ = value; \
48 void sk_memset16_portable(uint16_t dst[], uint16_t value, int count) { in sk_memset16_portable() argument
49 SkASSERT(dst != NULL && count >= 0); in sk_memset16_portable()
58 *dst++ = (uint16_t)value; in sk_memset16_portable()
64 if ((size_t)dst & 2) { in sk_memset16_portable()
65 *dst++ = (uint16_t)value; in sk_memset16_portable()
75 uint32_t* dst32 = (uint32_t*)dst; in sk_memset16_portable()
79 dst = (uint16_t*)dst32; in sk_memset16_portable()
89 *(uint32_t*)dst = value32; in sk_memset16_portable()
90 dst += 2; in sk_memset16_portable()
97 *dst = (uint16_t)value; in sk_memset16_portable()
101 void sk_memset32_portable(uint32_t dst[], uint32_t value, int count) { in sk_memset32_portable() argument
102 SkASSERT(dst != NULL && count >= 0); in sk_memset32_portable()
107 assign_16_longs(dst, value); in sk_memset32_portable()
114 *dst++ = value; in sk_memset32_portable()
120 static void sk_memset16_stub(uint16_t dst[], uint16_t value, int count) { in sk_memset16_stub() argument
123 sk_memset16(dst, value, count); in sk_memset16_stub()
128 static void sk_memset32_stub(uint32_t dst[], uint32_t value, int count) { in sk_memset32_stub() argument
131 sk_memset32(dst, value, count); in sk_memset32_stub()
361 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t dst[]) { in SkUTF16_FromUnichar() argument
366 if (dst) { in SkUTF16_FromUnichar()
370 dst[0] = SkToU16((0xD800 - 64) + (uni >> 10)); in SkUTF16_FromUnichar()
371 dst[1] = SkToU16(0xDC00 | (uni & 0x3FF)); in SkUTF16_FromUnichar()
373 SkASSERT(SkUTF16_IsHighSurrogate(dst[0])); in SkUTF16_FromUnichar()
374 SkASSERT(SkUTF16_IsLowSurrogate(dst[1])); in SkUTF16_FromUnichar()
376 dst[0] = SkToU16(uni); in SkUTF16_FromUnichar()
377 SkASSERT(!SkUTF16_IsHighSurrogate(dst[0])); in SkUTF16_FromUnichar()
378 SkASSERT(!SkUTF16_IsLowSurrogate(dst[0])); in SkUTF16_FromUnichar()