Lines Matching refs:mask
143 const ResourceMask* ResourceMaskCache::GetMask(const ResourceMask& mask) { in GetMask() argument
151 if ((mask.masks_[0] >> 32) == 0u && (mask.masks_[1] & ~kAllowedSpecialBits.masks_[1]) == 0u) { in GetMask()
153 uint32_t low_regs = static_cast<uint32_t>(mask.masks_[0]); in GetMask()
155 if (low_regs_without_lowest == 0u && IsPowerOfTwo(mask.masks_[1])) { in GetMask()
157 size_t index = (mask.masks_[1] != 0u) ? CLZ(mask.masks_[1]) : 0u; in GetMask()
161 } else if (IsPowerOfTwo(low_regs_without_lowest) && mask.masks_[1] == 0u) { in GetMask()
167 } else if (mask.Equals(kEncodeAll)) { in GetMask()
171 DCHECK(res->Equals(mask)) in GetMask()
172 << "(" << std::hex << std::setw(16) << mask.masks_[0] in GetMask()
173 << ", "<< std::hex << std::setw(16) << mask.masks_[1] in GetMask()
181 return new (mem) ResourceMask(mask); in GetMask()