mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-23 03:01:08 +00:00
Fixes issues with MacOSX.
- Fixes compiler errors with mismatching types in DoomController.mm - Adds PPC_INTRINSICS fix to Simd_Altivec.h
This commit is contained in:
parent
112c00d409
commit
f000947d4e
2 changed files with 5 additions and 3 deletions
|
@ -95,7 +95,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
// This turns on support for PPC intrinsics in the SIMD_AltiVec.cpp file. Right now it's only used for frsqrte. GCC
|
||||
// supports these intrinsics but XLC does not.
|
||||
#define PPC_INTRINSICS
|
||||
#if defined(__GNUC__) && defined(__ALTIVEC__)
|
||||
#define PPC_INTRINSICS
|
||||
#endif
|
||||
|
||||
// This assumes that the idDrawVert array that is used in DeriveUnsmoothedTangents is aligned. If its not aligned,
|
||||
// then we don't get any speedup
|
||||
|
|
|
@ -254,7 +254,7 @@ returns in megabytes
|
|||
================
|
||||
*/
|
||||
int Sys_GetSystemRam( void ) {
|
||||
long ramSize;
|
||||
SInt32 ramSize;
|
||||
|
||||
if ( Gestalt( gestaltPhysicalRAMSize, &ramSize ) == noErr ) {
|
||||
return ramSize / (1024*1024);
|
||||
|
@ -265,7 +265,7 @@ int Sys_GetSystemRam( void ) {
|
|||
|
||||
bool OSX_GetCPUIdentification( int& cpuId, bool& oldArchitecture )
|
||||
{
|
||||
long cpu;
|
||||
SInt32 cpu;
|
||||
Gestalt(gestaltNativeCPUtype, &cpu);
|
||||
|
||||
cpuId = cpu;
|
||||
|
|
Loading…
Reference in a new issue