remove unused cpu check
This commit is contained in:
parent
f45d0d1683
commit
f76d10df4d
16
src/Misc.h
16
src/Misc.h
@ -6,22 +6,6 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#if defined(WIN) && !defined(__GNUC__)
|
|
||||||
#define x86_cpuid(func,af,bf,cf,df) \
|
|
||||||
do {\
|
|
||||||
__asm mov eax, func\
|
|
||||||
__asm cpuid\
|
|
||||||
__asm mov af, eax\
|
|
||||||
__asm mov bf, ebx\
|
|
||||||
__asm mov cf, ecx\
|
|
||||||
__asm mov df, edx\
|
|
||||||
} while(0)
|
|
||||||
#else
|
|
||||||
#define x86_cpuid(func,af,bf,cf,df) \
|
|
||||||
__asm__ __volatile ("cpuid":\
|
|
||||||
"=a" (af), "=b" (bf), "=c" (cf), "=d" (df) : "a" (func));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Linear interpolation
|
//Linear interpolation
|
||||||
template <typename T> inline T LinearInterpolate(T val1, T val2, T lowerCoord, T upperCoord, T coord)
|
template <typename T> inline T LinearInterpolate(T val1, T val2, T lowerCoord, T upperCoord, T coord)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user