mirror of https://github.com/Nonannet/copapy.git
stencil alignment for ARM set to 4 - gcc complaints otherwise
This commit is contained in:
parent
1e654c65f8
commit
fcd34e6937
|
|
@ -3,7 +3,11 @@
|
|||
// Remove function alignment for stencils
|
||||
#if defined(__GNUC__)
|
||||
#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)))
|
||||
#endif
|
||||
#else
|
||||
#define NOINLINE
|
||||
#define STENCIL
|
||||
|
|
|
|||
Loading…
Reference in New Issue