Skip to content

Commit 66943de

Browse files
reformat
1 parent be81652 commit 66943de

9 files changed

+16
-15
lines changed

libc/include/llvm-libc-macros/stdbit-macros.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ inline unsigned stdc_first_trailing_zero(unsigned long long x) {
159159
unsigned: stdc_first_leading_one_ui, \
160160
unsigned long: stdc_first_leading_one_ul, \
161161
unsigned long long: stdc_first_leading_one_ull)(x)
162-
#define stdc_first_trailing_zero(x) \
162+
#define stdc_first_trailing_zero(x) \
163163
_Generic((x), \
164-
unsigned char: stdc_first_trailing_zero_uc, \
165-
unsigned short: stdc_first_trailing_zero_us, \
166-
unsigned: stdc_first_trailing_zero_ui, \
167-
unsigned long: stdc_first_trailing_zero_ul, \
164+
unsigned char: stdc_first_trailing_zero_uc, \
165+
unsigned short: stdc_first_trailing_zero_us, \
166+
unsigned: stdc_first_trailing_zero_ui, \
167+
unsigned long: stdc_first_trailing_zero_ul, \
168168
unsigned long long: stdc_first_trailing_zero_ull)(x)
169169
#endif // __cplusplus
170170

libc/src/__support/CPP/bit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ SPECIALIZE_FLO(first_leading_one, unsigned long long, __builtin_clzll)
300300
#define SPECIALIZE_FTZ(NAME, TYPE, BUILTIN) \
301301
template <> [[nodiscard]] LIBC_INLINE constexpr int NAME<TYPE>(TYPE value) { \
302302
static_assert(cpp::is_unsigned_v<TYPE>); \
303-
return value == cpp::numeric_limits<TYPE>::max() \
303+
return value == cpp::numeric_limits<TYPE>::max() \
304304
? 0 \
305-
: BUILTIN(static_cast<TYPE>(~value)) + 1; \
305+
: BUILTIN(static_cast<TYPE>(~value)) + 1; \
306306
}
307307

308308
template <typename T, typename = cpp::enable_if_t<cpp::is_unsigned_v<T>>>

libc/src/stdbit/stdc_first_trailing_zero_ull.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Implementation of stdc_first_trailing_zero_ull ---------------------===//
1+
//===-- Implementation of stdc_first_trailing_zero_ull --------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/src/stdbit/stdc_first_trailing_zero_ull.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Implementation header for stdc_first_trailing_zero_ull ---*- C++ -*-===//
1+
//===-- Implementation header for stdc_first_trailing_zero_ull --*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/test/src/stdbit/stdc_first_trailing_zero_uc_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for stdc_first_trailing_zero_uc --------------------------===//
1+
//===-- Unittests for stdc_first_trailing_zero_uc -------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/test/src/stdbit/stdc_first_trailing_zero_ui_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for stdc_first_trailing_zero_ui --------------------------===//
1+
//===-- Unittests for stdc_first_trailing_zero_ui -------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/test/src/stdbit/stdc_first_trailing_zero_ul_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for stdc_first_trailing_zero_ul --------------------------===//
1+
//===-- Unittests for stdc_first_trailing_zero_ul -------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

libc/test/src/stdbit/stdc_first_trailing_zero_ull_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for stdc_first_trailing_zero_ull --------------------------===//
1+
//===-- Unittests for stdc_first_trailing_zero_ull ------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -16,5 +16,6 @@ TEST(LlvmLibcStdcFirstTrailingZeroUllTest, ALL) {
1616

1717
TEST(LlvmLibcStdcFirstTrailingZeroUllTest, ZeroHot) {
1818
for (unsigned i = 0U; i != ULLONG_WIDTH; ++i)
19-
EXPECT_EQ(LIBC_NAMESPACE::stdc_first_trailing_zero_ull(~(1ULL << i)), i + 1);
19+
EXPECT_EQ(LIBC_NAMESPACE::stdc_first_trailing_zero_ull(~(1ULL << i)),
20+
i + 1);
2021
}

libc/test/src/stdbit/stdc_first_trailing_zero_us_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for stdc_first_trailing_zero_us --------------------------===//
1+
//===-- Unittests for stdc_first_trailing_zero_us -------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)