Lines Matching +full:least +full:-
1 //===-- InstructionUtils.h --------------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
20 // least significant bit (lsbit) of a 64-bit unsigned value.
24 return (bits >> lsbit) & ((1ull << (msbit - lsbit + 1)) - 1); in Bits64()
28 // least significant bit (lsbit) of a 32-bit unsigned value.
32 return (bits >> lsbit) & ((1u << (msbit - lsbit + 1)) - 1); in Bits32()
35 // Return the bit value from the 'bit' position of a 32-bit unsigned value.
45 // least significant bit (lsbit) of a 32-bit unsigned value to 'val'.
49 uint32_t mask = ((1u << (msbit - lsbit + 1)) - 1); in SetBits32()
54 // Set the 'bit' position of a 32-bit unsigned value to 'val'.
60 // Rotate a 32-bit unsigned value right by the specified amount.
63 return (bits >> amt) | (bits << ((32 - amt) & 31)); in Rotr32()
66 // Rotate a 32-bit unsigned value left by the specified amount.
69 return (bits << amt) | (bits >> ((32 - amt) & 31)); in Rotl32()
75 return -1ll; in MaskUpToBit()
76 return (1ull << (bit + 1ull)) - 1ull; in MaskUpToBit()
84 x &= x - 1; // clear the least significant bit set in BitCount()
100 result &= MaskUpToBit(msbit - lsbit); in UnsignedBits()
109 result |= ~MaskUpToBit(msbit - lsbit); in SignedBits()