libavutil/x86/cpu.c File Reference

#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 Documentation

#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))

Definition at line 38 of file cpu.c.

Referenced by ff_get_cpu_flags_x86().


Function Documentation

int ff_get_cpu_flags_x86 ( void   ) 

Definition at line 42 of file cpu.c.

Referenced by av_get_cpu_flags().


Generated on Fri Oct 26 02:39:49 2012 for FFmpeg by  doxygen 1.5.8