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_FAST(flags, suffix, cpuext) \
28 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
29 !((flags) & AV_CPU_FLAG_ ## cpuext ## SLOW))
31 #define CPUEXT_SUFFIX_SLOW(flags, suffix, cpuext) \
32 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \
33 ((flags) & AV_CPU_FLAG_ ## cpuext ## SLOW))
35 #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext)
36 #define CPUEXT_FAST(flags, cpuext) CPUEXT_SUFFIX_FAST(flags, , cpuext)
37 #define CPUEXT_SLOW(flags, cpuext) CPUEXT_SUFFIX_SLOW(flags, , cpuext)
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)
int ff_get_cpu_flags_aarch64(void)