19 #include "../PlatformDefinitions.h"
20 #include "../SpuFakeDma.h"
24 #include <spu_printf.h>
27 #define spu_printf printf
30 #define MAX_NUM_BODIES 8192
62 spu_printf(
"SPU Error: exceed number of bodies, see MAX_NUM_BODIES in SpuSampleTask.cpp\n");
65 int dmaArraySize = batchSize*
sizeof(
void*);
81 for (
int i=0;i<batchSize;i++)
97 float timeStep = 1.f/60.f;
106 void* ptr = (
void*)localPtr;
126 int dmaArraySize = batchSize*
sizeof(
void*);
130 spu_printf(
"SPU Error: exceed number of bodies, see MAX_NUM_BODIES in SpuSampleTask.cpp\n");
138 if (dmaArraySize>=16)
148 for (
int i=0;i<batchSize;i++)
160 cellDmaGet((
void*)localPtr, ppuRigidBodyAddress , dmaBodySize,
DMA_TAG(1), 0, 0);
164 float timeStep = 1.f/60.f;
179 void* ptr = (
void*)localPtr;
200 #if defined(__CELLOS_LV2__) || defined (LIBSPE2)
206 return &gLocalStoreMemory;