mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-07 02:09:52 +03:00
First steps
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
// cpu.cpp from tier0 already has the same code, so should it be removed?
|
||||
|
||||
#ifndef __arm__
|
||||
#define cpuid(in,a,b,c,d) \
|
||||
asm("pushl %%ebx\n\t" "cpuid\n\t" "movl %%ebx,%%esi\n\t" "pop %%ebx": "=a" (a), "=S" (b), "=c" (c), "=d" (d) : "a" (in));
|
||||
|
||||
@@ -45,3 +48,13 @@ bool Check3DNowTechnology(void)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
|
||||
// these guys don't exist in any ARM processor
|
||||
bool Check3DNowTechnology( void ) { return false; }
|
||||
bool CheckMMXTechnology( void ) { return false; }
|
||||
bool CheckSSE2Technology( void ) { return false; }
|
||||
bool CheckSSETechnology( void ) { return false; }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user