mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
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
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:
parent
143813a90e
commit
6ae014d6ed
3 changed files with 40 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue