Loading...
Searching...
No Matches
Go to the documentation of this file.
6#ifndef __SOF_COMPILER_ATTRIBUTES_H__
7#define __SOF_COMPILER_ATTRIBUTES_H__
9#include <zephyr/toolchain.h>
12#include <zephyr/debug/sparse.h>
15#define __aligned(x) __attribute__((__aligned__(x)))
19#define __section(x) __attribute__((section(x)))
29#if ((defined(__GNUC__) && (__GNUC__ >= 7)) || \
30 (defined(__clang__) && (__clang_major__ >= 10))) && !defined(__CHECKER__)
31#define COMPILER_FALLTHROUGH __attribute__((fallthrough))
33#define COMPILER_FALLTHROUGH