Browse Source

Add port buffer alignment code

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1461 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.63
sletz 18 years ago
parent
commit
bf0ebd4e0f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/JackPort.h

+ 2
- 2
common/JackPort.h View File

@@ -58,9 +58,9 @@ class JackPort
//__declspec(align(16)) float fBuffer[BUFFER_SIZE_MAX]; //__declspec(align(16)) float fBuffer[BUFFER_SIZE_MAX];
float fBuffer[BUFFER_SIZE_MAX]; float fBuffer[BUFFER_SIZE_MAX];
#elif __GNUC__ #elif __GNUC__
float fBuffer[BUFFER_SIZE_MAX] __attribute__((aligned(16)));
float fBuffer[BUFFER_SIZE_MAX] __attribute__((aligned(64))); // 16 alignment for vector code, 64 better for cache loads/stores
#else #else
#warning Buffer will not be aligned on 16 bytes boundaries : vector based code (Altivec of SSE) may fail
#warning Buffer will not be aligned on 16 bytes boundaries : vector based code (Altivec of SSE) will fail
float fBuffer[BUFFER_SIZE_MAX]; float fBuffer[BUFFER_SIZE_MAX];
#endif #endif




Loading…
Cancel
Save