17 #ifndef BT_DOUBLE_BUFFER_H
18 #define BT_DOUBLE_BUFFER_H
25 template<
class T,
int size>
28 #if defined(__SPU__) || defined(USE_LIBSPE2)
60 template<
class T,
int size>
66 template<
class T,
int size>
69 this->m_dmaPending =
false;
70 this->m_frontBuffer = &this->m_buffer0[0];
71 this->m_backBuffer = &this->m_buffer1[0];
74 template<
class T,
int size>
86 template<
class T,
int size>
95 template<
class T,
int size>
102 template<
class T,
int size>
109 template<
class T,
int size>
116 m_dmaPending =
false;
119 T *tmp = m_backBuffer;
120 m_backBuffer = m_frontBuffer;
123 return m_frontBuffer;
void backBufferDmaPut(uint64_t ea, unsigned int numBytes, unsigned int tag)
#define ATTRIBUTE_ALIGNED128(a)
void * cellDmaLargeGetReadOnly(void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
int cellDmaLargePut(const void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
cellDmaLargePut Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy...
void cellDmaWaitTagStatusAll(int ignore)
cellDmaWaitTagStatusAll Win32 replacements for Cell DMA to allow simulating most of the SPU code (jus...
void backBufferDmaGet(uint64_t ea, unsigned int numBytes, unsigned int tag)