Various fixes for 64-builds and added 64-bit libs for macOS.

This commit is contained in:
Scott Ehlert committed 2017-06-02 08:31:37 -05:00
1 parent 06c1c90b4e
commit 6fd68f3835
33 files changed
+929 -103

No files matched your search

+16
View File
@@ -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
}