|
Sound Open Firmware
|


Go to the source code of this file.
Macros | |
| #define | __must_check __attribute__((warn_unused_result)) |
| #define | IS_ALIGNED(size, alignment) ((size) % (alignment) == 0) |
| #define | is_power_of_2(x) ((x) && !((x) & ((x) - 1))) |
| #define | compile_check(x) (sizeof(struct { int _f[2 * (x) - 1]; }) != 0) |
| #define | ALIGN_UP_INTERNAL(val, align) (((val) + (align) - 1) & ~((align) - 1)) |
| #define | ALIGN_UP(size, alignment) ALIGN_UP_INTERNAL(size, alignment) |
| #define | ALIGN_UP_COMPILE ALIGN_UP |
| #define | ALIGN_DOWN(size, alignment) ((size) & ~((alignment) - 1)) |
| #define | ALIGN(val, align) ALIGN_UP_INTERNAL(val, align) |
| #define | SOF_DIV_ROUND_UP(val, div) (((val) + (div) - 1) / (div)) |
| #define | container_of(ptr, type, member) |
| #define | attr_container_of(ptr, type, member, attr) |
| #define | ffs(i) __builtin_ffs(i) |
| #define | ffsl(i) __builtin_ffsl(i) |
| #define | ffsll(i) __builtin_ffsll(i) |
| #define | clz(i) __builtin_clz(i) |
| #define | clzl(i) __builtin_clzl(i) |
| #define | clzll(i) __builtin_clzll(i) |
| #define | popcount(x) __builtin_popcount(x) |
| #define | PP_NARG(...) |
| #define | STATIC_ASSERT(COND, MESSAGE) |
| #define | SOF_CONFIG_HIFI(level, component) (CONFIG_ ## component ## _HIFI_ ## level) |
| #define | SOF_USE_HIFI(level, component) |
| #define | SOF_USE_MIN_HIFI(minlevel, component) |
| #define | SOF_CONFIG_ARM_SIMD(component) (CONFIG_ ## component ## _ARM_SIMD) |
| #define | SOF_USE_ARM_SIMD(component) (IS_ENABLED(CONFIG_ ## component ## _ARM_SIMD)) |
| #define | SOF_CONFIG_ARM_FPU(component) (CONFIG_ ## component ## _ARM_FPU) |
| #define | SOF_USE_ARM_FPU(component) (IS_ENABLED(CONFIG_ ## component ## _ARM_FPU)) |
| #define | SOF_CONFIG_RISCV_SIMD(component) (CONFIG_ ## component ## _RISCV_SIMD) |
| #define | SOF_USE_RISCV_SIMD(component) (IS_ENABLED(CONFIG_ ## component ## _RISCV_SIMD)) |
| #define | SOF_MAX_XCHAL_HIFI NONE |
| #define | SOF_FRAME_BYTE_ALIGN 4 |
| #define | SOF_FRAME_COUNT_ALIGN 1 |
| #define | __GLIBC_USE(x) 0 |
| #define | ASSUME_ALIGNED(x, a) ((__typeof__(x))__builtin_assume_aligned((x), a)) |
| #define __GLIBC_USE | ( | x | ) | 0 |
| #define __must_check __attribute__((warn_unused_result)) |
| #define ALIGN | ( | val, | |
| align | |||
| ) | ALIGN_UP_INTERNAL(val, align) |
| #define ALIGN_DOWN | ( | size, | |
| alignment | |||
| ) | ((size) & ~((alignment) - 1)) |
| #define ALIGN_UP | ( | size, | |
| alignment | |||
| ) | ALIGN_UP_INTERNAL(size, alignment) |
| #define ALIGN_UP_COMPILE ALIGN_UP |
| #define ALIGN_UP_INTERNAL | ( | val, | |
| align | |||
| ) | (((val) + (align) - 1) & ~((align) - 1)) |
| #define ASSUME_ALIGNED | ( | x, | |
| a | |||
| ) | ((__typeof__(x))__builtin_assume_aligned((x), a)) |
| #define attr_container_of | ( | ptr, | |
| type, | |||
| member, | |||
| attr | |||
| ) |
| #define clz | ( | i | ) | __builtin_clz(i) |
| #define clzl | ( | i | ) | __builtin_clzl(i) |
| #define clzll | ( | i | ) | __builtin_clzll(i) |
| #define compile_check | ( | x | ) | (sizeof(struct { int _f[2 * (x) - 1]; }) != 0) |
| #define container_of | ( | ptr, | |
| type, | |||
| member | |||
| ) |
| #define ffs | ( | i | ) | __builtin_ffs(i) |
| #define ffsl | ( | i | ) | __builtin_ffsl(i) |
| #define ffsll | ( | i | ) | __builtin_ffsll(i) |
| #define IS_ALIGNED | ( | size, | |
| alignment | |||
| ) | ((size) % (alignment) == 0) |
| #define is_power_of_2 | ( | x | ) | ((x) && !((x) & ((x) - 1))) |
| #define popcount | ( | x | ) | __builtin_popcount(x) |
| #define PP_NARG | ( | ... | ) |
| #define SOF_CONFIG_ARM_FPU | ( | component | ) | (CONFIG_ ## component ## _ARM_FPU) |
| #define SOF_CONFIG_ARM_SIMD | ( | component | ) | (CONFIG_ ## component ## _ARM_SIMD) |
| #define SOF_CONFIG_HIFI | ( | level, | |
| component | |||
| ) | (CONFIG_ ## component ## _HIFI_ ## level) |
| #define SOF_CONFIG_RISCV_SIMD | ( | component | ) | (CONFIG_ ## component ## _RISCV_SIMD) |
| #define SOF_DIV_ROUND_UP | ( | val, | |
| div | |||
| ) | (((val) + (div) - 1) / (div)) |
| #define SOF_FRAME_BYTE_ALIGN 4 |
| #define SOF_FRAME_COUNT_ALIGN 1 |
| #define SOF_MAX_XCHAL_HIFI NONE |
| #define SOF_USE_ARM_FPU | ( | component | ) | (IS_ENABLED(CONFIG_ ## component ## _ARM_FPU)) |
| #define SOF_USE_ARM_SIMD | ( | component | ) | (IS_ENABLED(CONFIG_ ## component ## _ARM_SIMD)) |
| #define SOF_USE_HIFI | ( | level, | |
| component | |||
| ) |
| #define SOF_USE_MIN_HIFI | ( | minlevel, | |
| component | |||
| ) |
| #define SOF_USE_RISCV_SIMD | ( | component | ) | (IS_ENABLED(CONFIG_ ## component ## _RISCV_SIMD)) |
| #define STATIC_ASSERT | ( | COND, | |
| MESSAGE | |||
| ) |