Get rid of ugly alignment macros and some other cruft, we now have alignas(16) from C++11

This commit is contained in:
Henrik Rydgård 2017-08-31 01:14:51 +02:00
parent 0c0da1cfa3
commit 22e65ba80d
26 changed files with 73 additions and 127 deletions

View file

@ -32,8 +32,8 @@
#include "GPU/GPUState.h"
#include "GPU/Common/VertexDecoderCommon.h"
static float MEMORY_ALIGNED16(bones[16 * 8]); // First four are kept in registers
static float MEMORY_ALIGNED16(boneMask[4]) = {1.0f, 1.0f, 1.0f, 0.0f};
alignas(16) static float bones[16 * 8]; // First four are kept in registers
alignas(16) static float boneMask[4] = {1.0f, 1.0f, 1.0f, 0.0f};
static const float by128 = 1.0f / 128.0f;
static const float by32768 = 1.0f / 32768.0f;