aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-01-15 09:13:26 -0800
committerKazu Hirata <kazu@google.com>2023-01-15 09:13:26 -0800
commit1b2d34e28eb2b71446cb007ca649ecac64664586 (patch)
tree6fed7771af0b27225a7c0559ed9f86289053afb2 /llvm/lib/Support/APInt.cpp
parent9ce7b40ad49f4e16c74d0a181c5cd25d21e417c8 (diff)
downloadllvm-1b2d34e28eb2b71446cb007ca649ecac64664586.zip
llvm-1b2d34e28eb2b71446cb007ca649ecac64664586.tar.gz
llvm-1b2d34e28eb2b71446cb007ca649ecac64664586.tar.bz2
[Support] clang-format partMSBpartMSB and partLSB (NFC)
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 3b89b01..1a2129a 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -2292,15 +2292,11 @@ static inline APInt::WordType highHalf(APInt::WordType part) {
/// Returns the bit number of the most significant set bit of a part.
/// If the input number has no bits set -1U is returned.
-static unsigned partMSB(APInt::WordType value) {
- return findLastSet(value);
-}
+static unsigned partMSB(APInt::WordType value) { return findLastSet(value); }
/// Returns the bit number of the least significant set bit of a part. If the
/// input number has no bits set -1U is returned.
-static unsigned partLSB(APInt::WordType value) {
- return findFirstSet(value);
-}
+static unsigned partLSB(APInt::WordType value) { return findFirstSet(value); }
/// Sets the least significant part of a bignum to the input value, and zeroes
/// out higher parts.