diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-03 16:46:17 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-04 19:29:14 +0200 |
commit | 1f6d86991f191568d45484f2b3740c2dcd0a7b45 (patch) | |
tree | e1014f6fb0443725e607d7c926337759c0cbf303 /libavutil/x86/cpu.h | |
parent | 65d12900432ac880d764edbbd36818431484a76e (diff) | |
download | ffmpeg-1f6d86991f191568d45484f2b3740c2dcd0a7b45.tar.gz |
x86: Add YASM implementations of cpuid and xgetbv from x264
This allows detecting CPU features with builds that have neither
gcc inline assembly nor the right compiler intrinsics enabled.
Diffstat (limited to 'libavutil/x86/cpu.h')
-rw-r--r-- | libavutil/x86/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/x86/cpu.h b/libavutil/x86/cpu.h index e14cb57416..e4f6f0bd5a 100644 --- a/libavutil/x86/cpu.h +++ b/libavutil/x86/cpu.h @@ -54,4 +54,8 @@ #define INLINE_AVX(flags) CPUEXT(flags, _INLINE, AVX) #define INLINE_FMA4(flags) CPUEXT(flags, _INLINE, FMA4) +void ff_cpu_cpuid(int index, int *eax, int *ebx, int *ecx, int *edx); +void ff_cpu_xgetbv(int op, int *eax, int *edx); +int ff_cpu_cpuid_test(void); + #endif /* AVUTIL_X86_CPU_H */ |