diff options
author | Måns Rullgård | 2010-09-09 18:51:45 +0000 |
---|---|---|
committer | Måns Rullgård | 2010-09-09 18:51:45 +0000 |
commit | 9275438a19c02264762d550a077bbf83acd63f3f (patch) | |
tree | 6fe28bcf94fa6d97578579f251a0f8e9a193be97 /libavutil/ppc | |
parent | d222e9f9daeabe499653bc79c9a25b774941e630 (diff) |
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
Diffstat (limited to 'libavutil/ppc')
-rw-r--r-- | libavutil/ppc/cpu.c (renamed from libavutil/ppc/cpu.h) | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavutil/ppc/cpu.h b/libavutil/ppc/cpu.c index 684361c5ff..9dc9471b3e 100644 --- a/libavutil/ppc/cpu.h +++ b/libavutil/ppc/cpu.c @@ -16,9 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef AVUTIL_PPC_CPU_H -#define AVUTIL_PPC_CPU_H - #ifdef __APPLE__ #undef _POSIX_C_SOURCE #include <sys/sysctl.h> @@ -32,13 +29,14 @@ #include <proto/exec.h> #endif /* __APPLE__ */ +#include "libavutil/cpu.h" #include "config.h" /** * This function MAY rely on signal() or fork() in order to make sure AltiVec * is present. */ -int av_get_cpu_flags(void) +int ff_get_cpu_flags_ppc(void) { #if HAVE_ALTIVEC #ifdef __AMIGAOS4__ @@ -84,5 +82,3 @@ int av_get_cpu_flags(void) #endif /* HAVE_ALTIVEC */ return 0; } - -#endif /* AVUTIL_PPC_CPU_H */ |