Constexprs may be unused

This commit is contained in:
paul 2019-08-22 23:39:11 +02:00
parent cbe2a3f0d5
commit 49bfa53a6c

View file

@ -3,11 +3,11 @@
#include "x86intrin.h"
#include "mathfuns/sse_mathfun.h"
constexpr uintptr_t TypeAlignment { 4 };
constexpr uintptr_t TypeAlignmentMask { TypeAlignment - 1 };
using Type = float;
constexpr uintptr_t ByteAlignment { TypeAlignment * sizeof(Type) };
constexpr uintptr_t ByteAlignmentMask { ByteAlignment - 1 };
[[maybe_unused]] constexpr uintptr_t TypeAlignment { 4 };
[[maybe_unused]] constexpr uintptr_t TypeAlignmentMask { TypeAlignment - 1 } ;
[[maybe_unused]] constexpr uintptr_t ByteAlignment { TypeAlignment * sizeof(Type) };
[[maybe_unused]] constexpr uintptr_t ByteAlignmentMask { ByteAlignment - 1 };
struct AlignmentSentinels { float* nextAligned; float* lastAligned; };