From 58ffde23f90f1b9fd6cdb949999c9b01706cd78e Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Wed, 9 Jun 2021 09:51:35 -0700 Subject: [PATCH] bit_util: Make Replicate constexpr --- src/dynarmic/common/bit_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynarmic/common/bit_util.h b/src/dynarmic/common/bit_util.h index bb3cfae6..d05c2221 100644 --- a/src/dynarmic/common/bit_util.h +++ b/src/dynarmic/common/bit_util.h @@ -199,7 +199,7 @@ constexpr bool MostSignificantBit(T value) { } template -inline T Replicate(T value, size_t element_size) { +constexpr T Replicate(T value, size_t element_size) { ASSERT_MSG(BitSize() % element_size == 0, "bitsize of T not divisible by element_size"); if (element_size == BitSize()) return value;