diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-29 14:04:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-29 14:05:15 +0200 |
commit | c83d794936b2adacbdd7fee12cf14439a9ed2689 (patch) | |
tree | 19bec339467dd18ef5fffb164a6172d6d36c089f | |
parent | 18a9deedb0b0da2d6675e14ecbb270477b7186b7 (diff) | |
parent | b78b10c4b78b696927f2801cf2d9f193b4eff28b (diff) | |
download | ffmpeg-c83d794936b2adacbdd7fee12cf14439a9ed2689.tar.gz |
Merge commit 'b78b10c4b78b696927f2801cf2d9f193b4eff28b'
* commit 'b78b10c4b78b696927f2801cf2d9f193b4eff28b':
avutil: Move internal CPU detection function declarations to private header
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/arm/cpu.c | 1 | ||||
-rw-r--r-- | libavutil/cpu.c | 1 | ||||
-rw-r--r-- | libavutil/cpu.h | 5 | ||||
-rw-r--r-- | libavutil/cpu_internal.h | 26 | ||||
-rw-r--r-- | libavutil/ppc/cpu.c | 1 | ||||
-rw-r--r-- | libavutil/x86/cpu.c | 1 |
6 files changed, 30 insertions, 5 deletions
diff --git a/libavutil/arm/cpu.c b/libavutil/arm/cpu.c index b4aabc375e..85ea662d94 100644 --- a/libavutil/arm/cpu.c +++ b/libavutil/arm/cpu.c @@ -17,6 +17,7 @@ */ #include "libavutil/cpu.h" +#include "libavutil/cpu_internal.h" #include "config.h" #define CORE_FLAG(f) \ diff --git a/libavutil/cpu.c b/libavutil/cpu.c index cdea209d8d..8b1c56514b 100644 --- a/libavutil/cpu.c +++ b/libavutil/cpu.c @@ -17,6 +17,7 @@ */ #include "cpu.h" +#include "cpu_internal.h" #include "config.h" #include "opt.h" #include "common.h" diff --git a/libavutil/cpu.h b/libavutil/cpu.h index df8ef8728a..e9e07317f6 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -105,9 +105,4 @@ int av_parse_cpu_caps(unsigned *flags, const char *s); */ int av_cpu_count(void); -/* The following CPU-specific functions shall not be called directly. */ -int ff_get_cpu_flags_arm(void); -int ff_get_cpu_flags_ppc(void); -int ff_get_cpu_flags_x86(void); - #endif /* AVUTIL_CPU_H */ diff --git a/libavutil/cpu_internal.h b/libavutil/cpu_internal.h new file mode 100644 index 0000000000..adbeff7c80 --- /dev/null +++ b/libavutil/cpu_internal.h @@ -0,0 +1,26 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVUTIL_CPU_INTERNAL_H +#define AVUTIL_CPU_INTERNAL_H + +int ff_get_cpu_flags_arm(void); +int ff_get_cpu_flags_ppc(void); +int ff_get_cpu_flags_x86(void); + +#endif /* AVUTIL_CPU_INTERNAL_H */ diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c index 20837dae11..d51e3fa659 100644 --- a/libavutil/ppc/cpu.c +++ b/libavutil/ppc/cpu.c @@ -29,6 +29,7 @@ #endif /* __APPLE__ */ #include "libavutil/cpu.h" +#include "libavutil/cpu_internal.h" #include "config.h" /** diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c index a3a5239159..81bb15a0a4 100644 --- a/libavutil/x86/cpu.c +++ b/libavutil/x86/cpu.c @@ -26,6 +26,7 @@ #include "libavutil/x86/asm.h" #include "libavutil/x86/cpu.h" #include "libavutil/cpu.h" +#include "libavutil/cpu_internal.h" #if HAVE_YASM |