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:
@@ -75,7 +75,7 @@ public:
|
|||||||
btSpinlock (SpinVariable* var)
|
btSpinlock (SpinVariable* var)
|
||||||
: spinVariable (var)
|
: spinVariable (var)
|
||||||
{}
|
{}
|
||||||
#ifndef SPU
|
#ifndef __SPU__
|
||||||
void Init ()
|
void Init ()
|
||||||
{
|
{
|
||||||
//*spinVariable = 1;
|
//*spinVariable = 1;
|
||||||
@@ -83,7 +83,7 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SPU
|
#ifdef __SPU__
|
||||||
void Lock ()
|
void Lock ()
|
||||||
{
|
{
|
||||||
// lock semaphore
|
// lock semaphore
|
||||||
@@ -103,7 +103,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
SpinVariable* spinVariable;
|
SpinVariable* spinVariable;
|
||||||
uint32_t atomic_buf[32] __attribute__((aligned(128)));
|
ATTRIBUTE_ALIGNED128(uint32_t atomic_buf[32]);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user