From f19aa7f1b605d5e8fc4f5c707f91890bc3145bbe Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 4 Oct 2008 23:22:41 +0000 Subject: [PATCH] set global alignment via a #define git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1742 0778d3d1-df1d-0410-868b-ea421aaaa00d --- include/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/types.h b/include/types.h index dc6659f29..e9f352c84 100644 --- a/include/types.h +++ b/include/types.h @@ -131,8 +131,9 @@ const ch_cnt_t SURROUND_CHANNELS = typedef sample_t sampleFrame[DEFAULT_CHANNELS]; typedef sample_t surroundSampleFrame[SURROUND_CHANNELS]; +#define ALIGN_SIZE 16 #if __GNUC__ -typedef sample_t sampleFrameA[DEFAULT_CHANNELS] __attribute__((__aligned__(16))); +typedef sample_t sampleFrameA[DEFAULT_CHANNELS] __attribute__((__aligned__(ALIGN_SIZE))); #endif #endif