From cda344329afa7ef5bfdd814378d8457c8d15e289 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 5 Feb 2026 20:36:19 -0600 Subject: [PATCH] Common/BitUtils: Make SetBit constexpr. --- Source/Core/Common/BitUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/BitUtils.h b/Source/Core/Common/BitUtils.h index 19eea49486..458fff63a3 100644 --- a/Source/Core/Common/BitUtils.h +++ b/Source/Core/Common/BitUtils.h @@ -189,7 +189,7 @@ template } template -void SetBit(T& value, size_t bit_number, bool bit_value) +constexpr void SetBit(T& value, size_t bit_number, bool bit_value) { static_assert(std::is_unsigned(), "SetBit is only sane on unsigned types."); @@ -200,7 +200,7 @@ void SetBit(T& value, size_t bit_number, bool bit_value) } template -void SetBit(T& value, bool bit_value) +constexpr void SetBit(T& value, bool bit_value) { SetBit(value, bit_number, bit_value); }