From 9275438a19c02264762d550a077bbf83acd63f3f Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Thu, 9 Sep 2010 18:51:45 +0000 Subject: Clean up av_get_cpu_flag() Instead of defining functions in per-arch header files included by the main cpu.c, define them normally and call them from the generic one. Originally committed as revision 25084 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/cpu.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libavutil/cpu.c') diff --git a/libavutil/cpu.c b/libavutil/cpu.c index fb37edb879..34530eebaf 100644 --- a/libavutil/cpu.c +++ b/libavutil/cpu.c @@ -19,18 +19,13 @@ #include "cpu.h" #include "config.h" -#if ARCH_ARM -# include "arm/cpu.h" -#elif ARCH_PPC -# include "ppc/cpu.h" -#elif ARCH_X86 -# include "x86/cpu.h" -#else int av_get_cpu_flags(void) { + if (ARCH_ARM) return ff_get_cpu_flags_arm(); + if (ARCH_PPC) return ff_get_cpu_flags_ppc(); + if (ARCH_X86) return ff_get_cpu_flags_x86(); return 0; } -#endif #ifdef TEST -- cgit v1.2.3