stencil alignment for ARM set to 4 - gcc complaints otherwise

This commit is contained in:
Nicolas 2025-11-23 17:10:53 +01:00 committed by Nicolas Kruse
parent 1e654c65f8
commit fcd34e6937
1 changed files with 4 additions and 0 deletions

View File

@ -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