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_SLOW2(flags, suffix, cpuext, slow_cpuext) \ 34 (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext) && \ 35 ((flags) & AV_CPU_FLAG_ ## slow_cpuext ## SLOW)) 37 #define CPUEXT_SUFFIX_FAST(flags, suffix, cpuext) CPUEXT_SUFFIX_FAST2(flags, suffix, cpuext, cpuext) 38 #define CPUEXT_SUFFIX_SLOW(flags, suffix, cpuext) CPUEXT_SUFFIX_SLOW2(flags, suffix, cpuext, cpuext) 40 #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext) 41 #define CPUEXT_FAST(flags, cpuext) CPUEXT_SUFFIX_FAST(flags, , cpuext) 42 #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)