File: spursUtilityMacros.h

package info (click to toggle)
openmohaa 0.82.1%2Bdfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 34,192 kB
  • sloc: cpp: 315,720; ansic: 275,789; sh: 312; xml: 246; asm: 141; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __CELL_UTILITY_MACROS_H
#define __CELL_UTILITY_MACROS_H

// This type pretends to be a pointer to a type on the PPU, and
// just an unsigned int on the SPU.
#ifndef CELL_PPU_POINTER
#define CELL_PPU_PTR_TYPE uint32_t

#ifdef __SPU__
#define CELL_PPU_POINTER(x) CELL_PPU_PTR_TYPE
#else // __SPU__
#define CELL_PPU_POINTER(x) x *

// Hope we never switch away from 32 bits...
// But this is here just in case...
//NX_COMPILE_TIME_ASSERT(sizeof(void *)==sizeof(CELL_PPU_PTR_TYPE));
#endif // __SPU__
#endif // CELL_PPU_POINTER

#endif
// end  __CELL_UTILITY_MACROS_H