Constexprs may be unused
This commit is contained in:
parent
cbe2a3f0d5
commit
49bfa53a6c
1 changed files with 4 additions and 4 deletions
|
|
@ -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; };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue