feat(numeric): add basic and floating point manipulation functions and the corresponding testing

This commit is contained in:
2024-11-27 19:03:54 +08:00
parent 84a41387ae
commit f5c47fe677
5 changed files with 332 additions and 1 deletions

View File

@ -21,7 +21,7 @@ FORCEINLINE constexpr T BitCast(const U& Value)
template <CUnsignedIntegral T>
FORCEINLINE constexpr T ByteSwap(T Value)
{
static_assert(sizeof(T) <= 16, "ByteSwap only works with T up to 128 bits.");
static_assert(sizeof(T) <= 16, "ByteSwap only works with T up to 128 bits");
if constexpr (sizeof(T) == 1) return Value;