mirror of https://github.com/Nonannet/copapy.git
stencil alignment for ARM set to 4 - gcc complaints otherwise
This commit is contained in:
parent
2418853b27
commit
b653b734db
|
|
@ -3,7 +3,11 @@
|
||||||
// Remove function alignment for stencils
|
// Remove function alignment for stencils
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#define NOINLINE __attribute__((noinline))
|
#define NOINLINE __attribute__((noinline))
|
||||||
|
#if defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(__thumb__) || defined(_M_ARM)
|
||||||
|
#define STENCIL __attribute__((aligned(4)))
|
||||||
|
#else
|
||||||
#define STENCIL __attribute__((aligned(1)))
|
#define STENCIL __attribute__((aligned(1)))
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define NOINLINE
|
#define NOINLINE
|
||||||
#define STENCIL
|
#define STENCIL
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue