AudioMatrix: Use alignas(16) for Coefs

This commit is contained in:
Luke Street 2020-04-14 22:12:35 -04:00
parent c36895a109
commit 4417c43721
2 changed files with 6 additions and 6 deletions

View File

@ -34,8 +34,8 @@ class AudioMatrixMono {
union Coefs { union Coefs {
float v[8]; float v[8];
#if __SSE__ #if __SSE__
__m128 q[2]; alignas(16) __m128 q[2];
__m64 d[4]; alignas(16) __m64 d[4];
#endif #endif
}; };
Coefs m_coefs = {}; Coefs m_coefs = {};
@ -88,8 +88,8 @@ class AudioMatrixStereo {
union Coefs { union Coefs {
float v[8][2]; float v[8][2];
#if __SSE__ #if __SSE__
__m128 q[4]; alignas(16) __m128 q[4];
__m64 d[8]; alignas(16) __m64 d[8];
#endif #endif
}; };
Coefs m_coefs = {}; Coefs m_coefs = {};

View File

@ -8,8 +8,8 @@ namespace boo {
union TVectorUnion { union TVectorUnion {
float v[4]; float v[4];
#if __SSE__ #if __SSE__
__m128 q; alignas(16) __m128 q;
__m64 d[2]; alignas(16) __m64 d[2];
#endif #endif
}; };