diff options
author | Dennis Shtatnov <densht@gmail.com> | 2013-12-30 11:13:29 -0500 |
---|---|---|
committer | Dennis Shtatnov <densht@gmail.com> | 2013-12-30 11:13:29 -0500 |
commit | d70b38d65f5afec50ae43c20edf3927d11dfa734 (patch) | |
tree | 7d50d7983b4151d3faeca2280fe6635c5647d87f | |
parent | cd00e1eb68dc0cc24c53a2e4dc2ba94efdec2dfe (diff) | |
download | ffts-d70b38d65f5afec50ae43c20edf3927d11dfa734.zip ffts-d70b38d65f5afec50ae43c20edf3927d11dfa734.tar.gz |
Check to make sure that the buffers were aligned properly
-rw-r--r-- | src/ffts.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -53,6 +53,18 @@ #endif void ffts_execute(ffts_plan_t *p, const void * in, void * out) { + +//TODO: Define NEEDS_ALIGNED properly instead +#if defined(HAVE_SSE) || defined(HAVE_NEON) + if(((int)in % 16) != 0) { + LOG("ffts_execute: input buffer needs to be aligned to a 128bit boundary\n"); + } + + if(((int)out % 16) != 0) { + LOG("ffts_execute: output buffer needs to be aligned to a 128bit boundary\n"); + } +#endif + p->transform(p, (const float *)in, (float *)out); } |