Shadowrun: Awakened 29 September 2011 - Build 871
Defines | Typedefs | Functions
xbox360_ppc.h File Reference
#include "xtl.h"
#include "ppcintrinsics.h"
Include dependency graph for xbox360_ppc.h:

Go to the source code of this file.

Defines

#define __TBB_BIG_ENDIAN   1
#define __TBB_CompareAndSwap4(P, V, C)   __TBB_machine_cmpswp4(P,V,C)
#define __TBB_CompareAndSwap8(P, V, C)   __TBB_machine_cmpswp8(P,V,C)
#define __TBB_CompareAndSwapW(P, V, C)   __TBB_machine_cmpswp4(P,V,C)
#define __TBB_fence_for_acquire()   __lwsync()
#define __TBB_fence_for_release()   __lwsync()
#define __TBB_Pause(V)   __TBB_machine_pause(V)
#define __TBB_WORDSIZE   4
#define __TBB_Yield()   Sleep(0)
#define NOD3D
#define NONET

Typedefs

typedef __int64 int64_t
typedef unsigned char uint8_t

Functions

__int32 __TBB_machine_cmpswp4 (volatile void *ptr, __int32 value, __int32 comparand)
__int64 __TBB_machine_cmpswp8 (volatile void *ptr, __int64 value, __int64 comparand)
void __TBB_machine_pause (__int32 delay)
void __TBB_rel_acq_fence ()

Define Documentation

#define __TBB_BIG_ENDIAN   1

Definition at line 47 of file xbox360_ppc.h.

#define __TBB_CompareAndSwap4 (   P,
  V,
 
)    __TBB_machine_cmpswp4(P,V,C)

Definition at line 78 of file xbox360_ppc.h.

#define __TBB_CompareAndSwap8 (   P,
  V,
 
)    __TBB_machine_cmpswp8(P,V,C)

Definition at line 79 of file xbox360_ppc.h.

#define __TBB_CompareAndSwapW (   P,
  V,
 
)    __TBB_machine_cmpswp4(P,V,C)

Definition at line 80 of file xbox360_ppc.h.

#define __TBB_fence_for_acquire ( )    __lwsync()

Definition at line 83 of file xbox360_ppc.h.

#define __TBB_fence_for_release ( )    __lwsync()

Definition at line 84 of file xbox360_ppc.h.

#define __TBB_Pause (   V)    __TBB_machine_pause(V)

Definition at line 82 of file xbox360_ppc.h.

#define __TBB_WORDSIZE   4

Definition at line 46 of file xbox360_ppc.h.

#define __TBB_Yield ( )    Sleep(0)

Definition at line 81 of file xbox360_ppc.h.

#define NOD3D

Definition at line 34 of file xbox360_ppc.h.

#define NONET

Definition at line 33 of file xbox360_ppc.h.


Typedef Documentation

typedef __int64 int64_t

Definition at line 51 of file xbox360_ppc.h.

typedef unsigned char uint8_t

Definition at line 52 of file xbox360_ppc.h.


Function Documentation

__int32 __TBB_machine_cmpswp4 ( volatile void *  ptr,
__int32  value,
__int32  comparand 
) [inline]

Definition at line 54 of file xbox360_ppc.h.

{                               
 __lwsync();
 __int32 result = InterlockedCompareExchange((volatile LONG*)ptr, value, comparand);
 __lwsync();
 return result;
}
__int64 __TBB_machine_cmpswp8 ( volatile void *  ptr,
__int64  value,
__int64  comparand 
) [inline]

Definition at line 62 of file xbox360_ppc.h.

{
 __lwsync();
 __int64 result = InterlockedCompareExchange64((volatile LONG64*)ptr, value, comparand);
 __lwsync();
 return result;
}
void __TBB_machine_pause ( __int32  delay) [inline]

Definition at line 71 of file xbox360_ppc.h.

{
 for (__int32 i=0; i<delay; i++) {;};
}
void __TBB_rel_acq_fence ( ) [inline]

Definition at line 44 of file xbox360_ppc.h.

{ __lwsync(); }

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net