Prepare for TF2 64bits (#127)

* Prepare for 64bits

* Add the dynamic and static librairies

* Delete choreoobjects_x86_64.a

---------

Co-authored-by: Kenzzer <[email protected]>
This commit is contained in:
BenoistandKenzzer authored and GitHub committed 2024-01-26 13:19:59 +00:00
1 parent 140cc6dc66
commit dcf515fea8
25 files changed
+206 -160

No files matched your search

+17 -1
View File
@@ -1,4 +1,4 @@
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: linux dependant ASM code for CPU capability detection
//
@@ -11,30 +11,43 @@
bool CheckMMXTechnology(void)
{
#ifndef PLATFORM_64BITS
unsigned long eax,ebx,edx,unused;
cpuid(1,eax,ebx,unused,edx);
return edx & 0x800000;
#else
return true;
#endif
}
bool CheckSSETechnology(void)
{
#ifndef PLATFORM_64BITS
unsigned long eax,ebx,edx,unused;
cpuid(1,eax,ebx,unused,edx);
return edx & 0x2000000L;
#else
return true;
#endif
}
bool CheckSSE2Technology(void)
{
#ifndef PLATFORM_64BITS
unsigned long eax,ebx,edx,unused;
cpuid(1,eax,ebx,unused,edx);
return edx & 0x04000000;
#else
return true;
#endif
}
bool Check3DNowTechnology(void)
{
#ifndef PLATFORM_64BITS
unsigned long eax, unused;
cpuid(0x80000000,eax,unused,unused,unused);
@@ -44,4 +57,7 @@ bool Check3DNowTechnology(void)
return ( eax & 1<<31 );
}
return false;
#else
return true;
#endif
}