swps3
DynProgr_SPE_main.c File Reference

Main routine and message handling on the SPE. More...

#include <spu_mfcio.h>
#include "DynProgr_SPE.h"
#include "DynProgr_SPE_functions.h"
#include <stdio.h>
#include "matrix.h"
Include dependency graph for DynProgr_SPE_main.c:

Go to the source code of this file.

Macros

#define max(a, b)   (((a)>(b))?(a):(b))
 
#define min(a, b)   (((a)<(b))?(a):(b))
 

Functions

static int8_t mainMemory[TOTAL_MEMORY__attribute__ ((__aligned__(16)))
 
void * alloc (int size)
 
int handleCommand (ppu_addr_t program_data_ea)
 
int main (uint64_t spe_id, ppu_addr_t program_data_ea, ppu_addr_t env)
 
int memRemaining ()
 
void reset ()
 

Variables

static int allocated = 0
 
static int datatype = -1
 

Detailed Description

Main routine and message handling on the SPE.

Definition in file DynProgr_SPE_main.c.

Macro Definition Documentation

#define max (   a,
 
)    (((a)>(b))?(a):(b))
#define min (   a,
 
)    (((a)<(b))?(a):(b))

Function Documentation

static int8_t mainMemory [ TOTAL_MEMORY ] __attribute__ ( (__aligned__(16))  )
static
void* alloc ( int  size)

Definition at line 43 of file DynProgr_SPE_main.c.

References ALIGN16, allocated, and TOTAL_MEMORY.

Referenced by handleCommand().

int main ( uint64_t  spe_id,
ppu_addr_t  program_data_ea,
ppu_addr_t  env 
)

Definition at line 253 of file DynProgr_SPE_main.c.

References handleCommand().

int memRemaining ( )

Definition at line 49 of file DynProgr_SPE_main.c.

References allocated, and TOTAL_MEMORY.

Referenced by handleCommand().

void reset ( )

Definition at line 52 of file DynProgr_SPE_main.c.

Referenced by handleCommand().

Variable Documentation

int allocated = 0
static

Definition at line 41 of file DynProgr_SPE_main.c.

Referenced by alloc(), and memRemaining().

int datatype = -1
static

Definition at line 42 of file DynProgr_SPE_main.c.

Referenced by handleCommand().