2025-11-12 12:50:33 +00:00
|
|
|
#include <math.h>
|
|
|
|
|
|
2025-11-12 20:53:10 +00:00
|
|
|
// Remove function alignment for stencils
|
2025-11-02 17:36:56 +00:00
|
|
|
#if defined(__GNUC__)
|
|
|
|
|
#define NOINLINE __attribute__((noinline))
|
2025-11-23 16:10:53 +00:00
|
|
|
#if defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(__thumb__) || defined(_M_ARM)
|
|
|
|
|
#define STENCIL __attribute__((aligned(4)))
|
|
|
|
|
#else
|
2025-11-12 20:53:10 +00:00
|
|
|
#define STENCIL __attribute__((aligned(1)))
|
2025-11-23 16:10:53 +00:00
|
|
|
#endif
|
2025-11-02 17:36:56 +00:00
|
|
|
#else
|
|
|
|
|
#define NOINLINE
|
2025-11-12 20:53:10 +00:00
|
|
|
#define STENCIL
|
2025-11-02 17:36:56 +00:00
|
|
|
#endif
|