Commit f1f79211 authored by Mans Rullgard's avatar Mans Rullgard Committed by Michael Niedermayer

x86: use raw opcode for xgetbv instruction

This allows the CPU detection to work with assemblers not supporting
the xgetbv mnemonic.  These include clang and some BSD versions.

All AVX code will be written for yasm, where the main assembler
is not involved.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit ef669538)
parent f9c61974
......@@ -36,7 +36,7 @@
: "0" (index));
#define xgetbv(index,eax,edx) \
__asm__ ("xgetbv" : "=a"(eax), "=d"(edx) : "c" (index))
__asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index))
/* Function to test if multimedia instructions are supported... */
int ff_get_cpu_flags_x86(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment