#include <stdlib.h>
#include <string.h>
#include "libavutil/x86_cpu.h"
#include "libavutil/cpu.h"
Go to the source code of this file.
Defines | |
#define | cpuid(index, eax, ebx, ecx, edx) |
#define | xgetbv(index, eax, edx) __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index)) |
Functions | |
int | ff_get_cpu_flags_x86 (void) |
#define cpuid | ( | index, | |||
eax, | |||||
ebx, | |||||
ecx, | |||||
edx | ) |
Value:
__asm__ volatile\ ("mov %%"REG_b", %%"REG_S"\n\t"\ "cpuid\n\t"\ "xchg %%"REG_b", %%"REG_S\ : "=a" (eax), "=S" (ebx),\ "=c" (ecx), "=d" (edx)\ : "0" (index));
Definition at line 29 of file cpu.c.
Referenced by ff_get_cpu_flags_x86().
#define xgetbv | ( | index, | |||
eax, | |||||
edx | ) | __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index)) |
int ff_get_cpu_flags_x86 | ( | void | ) |