Align integer gen and rec loops to 64 bytes
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-10-05 13:46:22 +02:00
parent 143813a90e
commit 6ae014d6ed
3 changed files with 40 additions and 0 deletions

View file

@ -61,7 +61,22 @@
* Forced alignment.
*/
#ifndef __aligned
#if defined(__GNUC__) || defined(__clang__)
#define __aligned(a) __attribute__((aligned(a)))
#else
#define __aligned(a)
#endif
#endif
/*
* Forced loops alignment.
*/
#ifndef __aligned_loops
#if defined(__GNUC__) && !defined(__clang__)
#define __aligned_loops(n) __attribute__((optimize("align-loops=" #n)))
#else
#define __aligned_loops(n)
#endif
#endif
/*