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:
dhewg 2012-06-28 14:08:39 +02:00 committed by Daniel Gibson
parent 16657c0ce3
commit a385bbeb29

View file

@ -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 // 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. // 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, // This assumes that the idDrawVert array that is used in DeriveUnsmoothedTangents is aligned. If its not aligned,
// then we don't get any speedup // then we don't get any speedup