diff options
author | Levi Behunin <l3ehunin@gmail.com> | 2023-01-29 13:54:13 -0700 |
---|---|---|
committer | Behunin <l3ehunin@gmail.com> | 2023-01-29 17:49:42 -0700 |
commit | d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea (patch) | |
tree | 4bbcaee76bde35ddc6eff9a1c639866cf278b353 /src/common/bit_util.h | |
parent | 3aab57452153c3dfa8591809bc09797da03b44dc (diff) |
Move to Clang Format 15
Depends on https://github.com/yuzu-emu/build-environments/pull/69
clang-15 primary run
Diffstat (limited to 'src/common/bit_util.h')
-rw-r--r-- | src/common/bit_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/bit_util.h b/src/common/bit_util.h index e4e6287f3d..13368b4392 100644 --- a/src/common/bit_util.h +++ b/src/common/bit_util.h @@ -45,19 +45,19 @@ template <typename T> } template <typename T> -requires std::is_unsigned_v<T> + requires std::is_unsigned_v<T> [[nodiscard]] constexpr bool IsPow2(T value) { return std::has_single_bit(value); } template <typename T> -requires std::is_integral_v<T> + requires std::is_integral_v<T> [[nodiscard]] T NextPow2(T value) { return static_cast<T>(1ULL << ((8U * sizeof(T)) - std::countl_zero(value - 1U))); } template <size_t bit_index, typename T> -requires std::is_integral_v<T> + requires std::is_integral_v<T> [[nodiscard]] constexpr bool Bit(const T value) { static_assert(bit_index < BitSize<T>(), "bit_index must be smaller than size of T"); return ((value >> bit_index) & T(1)) == T(1); |