set global alignment via a #define
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1742 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user