Removes bits of code and includes that are based on old 360, xbox and PS3 flags that are no longer needed.

This commit is contained in:
Areloch 2017-04-08 20:30:57 -05:00
parent 513789c2c7
commit 26fd24fbab
43 changed files with 35 additions and 356 deletions

View file

@ -26,13 +26,7 @@
/// @file
/// Compiler intrinsics for Visual C++.
#if defined(TORQUE_OS_XENON)
# include <Xtl.h>
# define _InterlockedExchangeAdd InterlockedExchangeAdd
# define _InterlockedExchangeAdd64 InterlockedExchangeAdd64
#else
# include <intrin.h>
#endif
#include <intrin.h>
// Fetch-And-Add
//
@ -48,16 +42,7 @@ inline void dFetchAndAdd( volatile S32& ref, S32 val )
_InterlockedExchangeAdd( ( volatile long* ) &ref, val );
}
#if defined(TORQUE_OS_XENON)
// Not available on x86
inline void dFetchAndAdd( volatile U64& ref, U64 val )
{
_InterlockedExchangeAdd64( ( volatile __int64* ) &ref, val );
}
#endif
// Compare-And-Swap
inline bool dCompareAndSwap( volatile U32& ref, U32 oldVal, U32 newVal )
{
return ( _InterlockedCompareExchange( ( volatile long* ) &ref, newVal, oldVal ) == oldVal );