Lines Matching refs:bytes
25 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t seed) { in hash_fn() argument
30 if (bytes >= 24) { in hash_fn()
37 size_t steps = bytes/24; in hash_fn()
44 bytes %= 24; in hash_fn()
48 SkASSERT(bytes < 24); in hash_fn()
49 if (bytes >= 16) { in hash_fn()
51 bytes -= 8; in hash_fn()
55 SkASSERT(bytes < 16); in hash_fn()
56 if (bytes & 8) { in hash_fn()
65 if (bytes & 4) { in hash_fn()
69 if (bytes & 2) { in hash_fn()
73 if (bytes & 1) { in hash_fn()
81 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
84 if (bytes >= 12) {
91 size_t steps = bytes/12;
98 bytes %= 12;
102 SkASSERT(bytes < 12);
103 if (bytes >= 8) {
105 bytes -= 4;
109 SkASSERT(bytes < 8);
110 if (bytes & 4) {
114 if (bytes & 2) {
118 if (bytes & 1) {
125 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
127 if (bytes >= 24) {
131 size_t steps = bytes/24;
138 bytes %= 24;
142 SkASSERT(bytes < 24);
143 if (bytes >= 16) {
145 bytes -= 8;
149 SkASSERT(bytes < 16);
150 if (bytes & 8) {
154 if (bytes & 4) {
158 if (bytes & 2) {
162 if (bytes & 1) {
170 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
173 size_t original_bytes = bytes;
176 while (bytes >= 4) {
187 bytes -= 4;
193 switch (bytes & 3) {