From: Kazu Hirata Date: Sun, 15 Jan 2023 17:13:26 +0000 (-0800) Subject: [Support] clang-format partMSBpartMSB and partLSB (NFC) X-Git-Tag: upstream/17.0.6~20880 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b2d34e28eb2b71446cb007ca649ecac64664586;p=platform%2Fupstream%2Fllvm.git [Support] clang-format partMSBpartMSB and partLSB (NFC) --- 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.