Lines Matching refs:mask
24 void print_hash(uint32_t *mask, uint32_t count) in print_hash() argument
30 printf("\t0x%08x,\n", mask[i]); in print_hash()
37 static uint32_t hash_shl2(uint32_t mask, uint32_t r1, uint32_t r2) in hash_shl2() argument
39 return ((mask << r1) - mask) << r2; in hash_shl2()
47 static uint32_t hash_rol2(uint32_t mask, uint32_t r1, uint32_t r2) in hash_rol2() argument
49 return ir_rol((ir_rol(mask, r1) - mask), r2); in hash_rol2()
54 int find_hash(uint32_t *mask, uint32_t count) in find_hash() argument
69 h = hash_shl2(mask[i] & 0x1fffff, r1, r2) % n; in find_hash()
74 hash[h] = mask[i]; in find_hash()
81 hash[h] = mask[i]; in find_hash()
97 h = hash_rol2(mask[i] & 0x1fffff, r1, r2) % n; in find_hash()
102 hash[h] = mask[i]; in find_hash()
109 hash[h] = mask[i]; in find_hash()
141 int op, mask; in parse_rule() local
159 mask = op; in parse_rule()
165 return mask; /* unused operands */ in parse_rule()
187 mask |= op << 7; in parse_rule()
196 return mask; /* unused op2 */ in parse_rule()
218 mask |= op << 14; in parse_rule()
238 return mask; in parse_rule()
248 uint32_t mask[MAX_RULES]; in main() local
281 mask[rules] = i | (rules << 21); in main()
289 printf("0x%08x\n", mask[i]); in main()
301 if (!find_hash(mask, rules)) { in main()