Lines Matching refs:bytes

31     /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t seed) {  in hash_fn()  argument
36 if (bytes >= 24) { in hash_fn()
43 size_t steps = bytes/24; in hash_fn()
50 bytes %= 24; in hash_fn()
54 SkASSERT(bytes < 24); in hash_fn()
55 if (bytes >= 16) { in hash_fn()
57 bytes -= 8; in hash_fn()
61 SkASSERT(bytes < 16); in hash_fn()
62 if (bytes & 8) { in hash_fn()
71 if (bytes & 4) { in hash_fn()
75 if (bytes & 2) { in hash_fn()
79 if (bytes & 1) { in hash_fn()
87 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) { in hash_fn() argument
90 if (bytes >= 12) { in hash_fn()
97 size_t steps = bytes/12; in hash_fn()
104 bytes %= 12; in hash_fn()
108 SkASSERT(bytes < 12); in hash_fn()
109 if (bytes >= 8) { in hash_fn()
111 bytes -= 4; in hash_fn()
115 SkASSERT(bytes < 8); in hash_fn()
116 if (bytes & 4) { in hash_fn()
120 if (bytes & 2) { in hash_fn()
124 if (bytes & 1) { in hash_fn()
131 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) { in hash_fn() argument
133 if (bytes >= 24) { in hash_fn()
137 size_t steps = bytes/24; in hash_fn()
144 bytes %= 24; in hash_fn()
148 SkASSERT(bytes < 24); in hash_fn()
149 if (bytes >= 16) { in hash_fn()
151 bytes -= 8; in hash_fn()
155 SkASSERT(bytes < 16); in hash_fn()
156 if (bytes & 8) { in hash_fn()
160 if (bytes & 4) { in hash_fn()
164 if (bytes & 2) { in hash_fn()
168 if (bytes & 1) { in hash_fn()
176 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) { in hash_fn() argument
179 size_t original_bytes = bytes; in hash_fn()
182 while (bytes >= 4) { in hash_fn()
193 bytes -= 4; in hash_fn()
199 switch (bytes & 3) { in hash_fn()