Lines Matching refs:opnd
329 inline static kind LowestOneBitValue(kind opnd) { in LowestOneBitValue() argument
331 return opnd & -opnd; in LowestOneBitValue()
336 inline static T HighestOneBitValue(T opnd) { in HighestOneBitValue() argument
339 if (opnd == 0) { in HighestOneBitValue()
342 int bit_position = BitSizeOf<T>() - (CLZ(static_cast<unsigned_type>(opnd)) + 1); in HighestOneBitValue()
350 inline static T Rot(T opnd, int distance) { in Rot() argument
355 return (static_cast<unsigned_type>(opnd) >> unsigned_right_shift) | (opnd << signed_left_shift); in Rot()
359 inline static uint32_t ReverseBits32(uint32_t opnd) { in ReverseBits32() argument
361 opnd = ((opnd >> 1) & 0x55555555) | ((opnd & 0x55555555) << 1); in ReverseBits32()
362 opnd = ((opnd >> 2) & 0x33333333) | ((opnd & 0x33333333) << 2); in ReverseBits32()
363 opnd = ((opnd >> 4) & 0x0F0F0F0F) | ((opnd & 0x0F0F0F0F) << 4); in ReverseBits32()
364 opnd = ((opnd >> 8) & 0x00FF00FF) | ((opnd & 0x00FF00FF) << 8); in ReverseBits32()
365 opnd = ((opnd >> 16)) | ((opnd) << 16); in ReverseBits32()
366 return opnd; in ReverseBits32()
370 inline static uint64_t ReverseBits64(uint64_t opnd) { in ReverseBits64() argument
372 opnd = (opnd & 0x5555555555555555L) << 1 | ((opnd >> 1) & 0x5555555555555555L); in ReverseBits64()
373 opnd = (opnd & 0x3333333333333333L) << 2 | ((opnd >> 2) & 0x3333333333333333L); in ReverseBits64()
374 opnd = (opnd & 0x0f0f0f0f0f0f0f0fL) << 4 | ((opnd >> 4) & 0x0f0f0f0f0f0f0f0fL); in ReverseBits64()
375 opnd = (opnd & 0x00ff00ff00ff00ffL) << 8 | ((opnd >> 8) & 0x00ff00ff00ff00ffL); in ReverseBits64()
376 opnd = (opnd << 48) | ((opnd & 0xffff0000L) << 16) | ((opnd >> 16) & 0xffff0000L) | (opnd >> 48); in ReverseBits64()
377 return opnd; in ReverseBits64()