OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
spursUtilityMacros.h
1#ifndef __CELL_UTILITY_MACROS_H
2#define __CELL_UTILITY_MACROS_H
3
4// This type pretends to be a pointer to a type on the PPU, and
5// just an unsigned int on the SPU.
6#ifndef CELL_PPU_POINTER
7#define CELL_PPU_PTR_TYPE uint32_t
8
9#ifdef __SPU__
10#define CELL_PPU_POINTER(x) CELL_PPU_PTR_TYPE
11#else // __SPU__
12#define CELL_PPU_POINTER(x) x *
13
14// Hope we never switch away from 32 bits...
15// But this is here just in case...
16//NX_COMPILE_TIME_ASSERT(sizeof(void *)==sizeof(CELL_PPU_PTR_TYPE));
17#endif // __SPU__
18#endif // CELL_PPU_POINTER
19
20#endif
21// end __CELL_UTILITY_MACROS_H