Fixed a bug in noise reduction when build with gcc 4.7.x

This commit is contained in:
Ingo
2014-12-30 18:19:28 +01:00
parent cb54a15b58
commit 750cd87047
2 changed files with 17 additions and 3 deletions

View File

@@ -55,9 +55,13 @@
#define RESTRICT __restrict__
#define LIKELY(x) __builtin_expect (!!(x), 1)
#define UNLIKELY(x) __builtin_expect (!!(x), 0)
#define ALIGNED64 __attribute__ ((aligned (64)))
#define ALIGNED16 __attribute__ ((aligned (16)))
#if __GNUC__ == 4 && __GNUC_MINOR__ >= 8
#define ALIGNED64 __attribute__ ((aligned (64)))
#define ALIGNED16 __attribute__ ((aligned (16)))
#else // there is a bug in gcc 4.7.x when using openmp and aligned memory and -O3
#define ALIGNED64
#define ALIGNED16
#endif
#else
#define RESTRICT
#define LIKELY(x) (x)