bit_util: Make Replicate constexpr
This commit is contained in:
parent
ccf27f9c8c
commit
58ffde23f9
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ constexpr bool MostSignificantBit(T value) {
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
inline T Replicate(T value, size_t element_size) {
|
||||
constexpr T Replicate(T value, size_t element_size) {
|
||||
ASSERT_MSG(BitSize<T>() % element_size == 0, "bitsize of T not divisible by element_size");
|
||||
if (element_size == BitSize<T>())
|
||||
return value;
|
||||
|
|
Loading…
Reference in a new issue