x86: cpu: clean up check for cpuid instruction support
authorMans Rullgard <mans@mansr.com>
Sun, 24 Jun 2012 11:29:28 +0000 (12:29 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jul 2012 18:32:16 +0000 (20:32 +0200)
commite346176de9809afec3724139ee320b613f753062
treebc26600a4bd00db28dc2100e80fc9228cfc5daa0
parent96890c001f32943a8d5823ae553d6022bee8850b
x86: cpu: clean up check for cpuid instruction support

This adds macros for accessing the EFLAGS register and uses
these instead of coding the entire check in inline asm.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/x86/cpu.c