19 #ifndef AVUTIL_CPU_INTERNAL_H
20 #define AVUTIL_CPU_INTERNAL_H
24 #define CPUEXT_SUFFIX(flags, suffix, cpuext) \
25 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext))
27 #define CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, slow_cpuext) \
28 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
29 !((flags) & AV_CPU_FLAG_ ## slow_cpuext ## SLOW))
31 #define CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, slow_cpuext) \
32 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
33 ((flags) & AV_CPU_FLAG_ ## slow_cpuext ## SLOW))
35 #define CPUEXT_SUFFIX_FAST(flags, suffix, cpuext) CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, cpuext)
36 #define CPUEXT_SUFFIX_SLOW(flags, suffix, cpuext) CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, cpuext)
38 #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
39 #define CPUEXT_FAST(flags, cpuext) CPUEXT_SUFFIX_FAST(flags, , cpuext)
40 #define CPUEXT_SLOW(flags, cpuext) CPUEXT_SUFFIX_SLOW(flags, , cpuext)
size_t ff_get_cpu_max_align_ppc(void)
int ff_get_cpu_flags_x86(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_arm(void)
size_t ff_get_cpu_max_align_aarch64(void)
int ff_get_cpu_flags_aarch64(void)
size_t ff_get_cpu_max_align_arm(void)
size_t ff_get_cpu_max_align_x86(void)