addr64_t Union Reference

This union helps transfering pointers between PPE and the SPE. More...

#include <types.h>


Data Fields

struct {
   void *   pad
 Padding for 32bit effective addresses.
   void *   p
 Pointer to effective address.
}; 
uint64_t ull
 Cast of the effective address to 64bit interger value for SPE-usage.
uint32_t ui [2]
 Cast of the effective address to two 32bit integers for convenience.


Detailed Description

This union helps transfering pointers between PPE and the SPE.

On the SPEs, any pointer to effective adresses has a size 64bit. Thus transfering pointers between PPE and SPEs may be painful if PPE-code is compiled for 32bit via the compiler-flag -m32. This structure helps transfering pointers by adding a 32bit padding in case of 32bit-code. The padding must be 0 for 32bit addresses.

Definition at line 68 of file types.h.


Field Documentation

Padding for 32bit effective addresses.

Must be 0. This member only exists for 32bit-code.

Definition at line 73 of file types.h.

void* addr64_t::p

Pointer to effective address.

32bit or 64bit depending on compiler flag.

Definition at line 75 of file types.h.

uint64_t addr64_t::ull

Cast of the effective address to 64bit interger value for SPE-usage.

Definition at line 77 of file types.h.

uint32_t addr64_t::ui[2]

Cast of the effective address to two 32bit integers for convenience.

Definition at line 78 of file types.h.


The documentation for this union was generated from the following file:

Generated on Fri Aug 8 14:53:26 2008 for Iolaos by  doxygen 1.5.5