Go to the documentation of this file.
19 #ifndef AVUTIL_CPU_INTERNAL_H
20 #define AVUTIL_CPU_INTERNAL_H
26 #define CPUEXT_SUFFIX(flags, suffix, cpuext) \
27 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
29 #define CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, slow_cpuext) \
30 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
31 !((flags) & AV_CPU_FLAG_ ## slow_cpuext ## SLOW))
33 #define CPUEXT_SUFFIX_SLOW(flags, suffix, cpuext) \
34 (HAVE_ ## cpuext ## suffix && \
35 ((flags) & (AV_CPU_FLAG_ ## cpuext | AV_CPU_FLAG_ ## cpuext ## SLOW)))
37 #define CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, slow_cpuext) \
38 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
39 ((flags) & (AV_CPU_FLAG_ ## slow_cpuext | AV_CPU_FLAG_ ## slow_cpuext ## SLOW)))
41 #define CPUEXT_SUFFIX_FAST(flags, suffix, cpuext) CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, cpuext)
43 #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
44 #define CPUEXT_FAST(flags, cpuext) CPUEXT_SUFFIX_FAST(flags, , cpuext)
45 #define CPUEXT_SLOW(flags, cpuext) CPUEXT_SUFFIX_SLOW(flags, , cpuext)
int ff_get_cpu_flags_mips(void)
size_t ff_get_cpu_max_align_loongarch(void)
int ff_get_cpu_flags_loongarch(void)
int ff_get_cpu_flags_ppc(void)
This function MAY rely on signal() or fork() in order to make sure AltiVec is present.
int ff_get_cpu_flags_x86(void)
size_t ff_get_cpu_max_align_ppc(void)
size_t ff_get_cpu_max_align_aarch64(void)
int ff_get_cpu_flags_arm(void)
size_t ff_get_cpu_max_align_arm(void)
size_t ff_get_cpu_max_align_mips(void)
int ff_get_cpu_flags_aarch64(void)
size_t ff_get_cpu_max_align_x86(void)