Added libspe2 parallel Cell SPE support contribution by IBM Germany 'Extreme Blue' project:

Thanks to Benjamin Hoeferlin, Minh Cuong Tran,Martina Huellmann,Frederick Roth.
This commit is contained in:
ejcoumans 2007-09-26 23:36:31 +00:00
parent 0ff4444118
commit dae8b658da

View File

@ -75,7 +75,7 @@ public:
btSpinlock (SpinVariable* var)
: spinVariable (var)
{}
#ifndef SPU
#ifndef __SPU__
void Init ()
{
//*spinVariable = 1;
@ -83,7 +83,7 @@ public:
}
#endif
#ifdef SPU
#ifdef __SPU__
void Lock ()
{
// lock semaphore
@ -103,7 +103,7 @@ public:
private:
SpinVariable* spinVariable;
uint32_t atomic_buf[32] __attribute__((aligned(128)));
ATTRIBUTE_ALIGNED128(uint32_t atomic_buf[32]);
};
#endif