Lines Matching defs:mask
663 // specified by the mask argument, and returns those sampled bits as a
665 // For example, a mask of 0b1010 returns a function that, given an instruction
667 BitExtractFn GetBitExtractFunction(uint32_t mask) {
668 return GetBitExtractFunctionHelper(mask, 0);
671 // Get a pointer to an Instruction method that applies a mask to the
673 // function gives a 1 result if (inst & mask == value), 0 otherwise.
674 BitExtractFn GetBitExtractFunction(uint32_t mask, uint32_t value) {
675 return GetBitExtractFunctionHelper(value, mask);
719 // Generate a mask and value pair from a pattern constructed from 0, 1 and x
721 // For example "10x1"_b should return mask = 0b1101, value = 0b1001.
736 // Generate a mask with a bit set at each sample position.
744 // x is a bit extraction mask. Otherwise, y is the mask, and x is the value