Lines Matching refs:mask
39 int32_t encodeMatcherMask(int32_t mask[], int32_t depth) {
40 return getEncodedField(mask, depth, false) | 0xff000000;
59 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask,
67 mask[depth] = 0x7f;
77 mask[depth] = 0x7f;
81 mask[depth] = 0;
85 mask[depth] = 0x7f;
89 mask[depth] = 0x80;
93 mask[depth] = 0;
99 output->push_back(Matcher(Field(tag, pos, depth), encodeMatcherMask(mask, depth)));
102 translateFieldMatcher(tag, child, depth + 1, pos, mask, output);
109 int mask[] = {0x7f, 0x7f, 0x7f};
112 translateFieldMatcher(tag, child, 0, pos, mask, output);