20 #ifndef BT_STACK_ALLOC
21 #define BT_STACK_ALLOC
67 return static_cast<int>(totalsize - usedsize);
72 const unsigned int nus(usedsize +
size);
76 return (data + (usedsize -
size));
98 usedsize = (
unsigned int)((block->
address - data) -
sizeof(
btBlock));
112 unsigned int totalsize;
113 unsigned int usedsize;
#define btAlignedFree(ptr)
#define btAlignedAlloc(size, alignment)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
#define SIMD_FORCE_INLINE
The StackAlloc class provides some fast stack-based memory allocator (LIFO last-in first-out)
SIMD_FORCE_INLINE void endBlock(btBlock *block)
void create(unsigned int size)
unsigned char * allocate(unsigned int size)
btStackAlloc(unsigned int size)
int getAvailableMemory() const
SIMD_FORCE_INLINE btBlock * beginBlock()
The btBlock class is an internal structure for the btStackAlloc memory allocator.