[llvm] 1b2d34e - [Support] clang-format partMSBpartMSB and partLSB (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 15 09:13:32 PST 2023
Author: Kazu Hirata
Date: 2023-01-15T09:13:26-08:00
New Revision: 1b2d34e28eb2b71446cb007ca649ecac64664586
URL: https://github.com/llvm/llvm-project/commit/1b2d34e28eb2b71446cb007ca649ecac64664586
DIFF: https://github.com/llvm/llvm-project/commit/1b2d34e28eb2b71446cb007ca649ecac64664586.diff
LOG: [Support] clang-format partMSBpartMSB and partLSB (NFC)
Added:
Modified:
llvm/lib/Support/APInt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 3b89b01f1dfd..1a2129a5617f 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.
More information about the llvm-commits
mailing list