Get the open source Bullet library more in sync with Playstation SPU version
This commit is contained in:
@@ -31,6 +31,26 @@ void btAlignedFree (void* ptr)
|
||||
|
||||
#else
|
||||
|
||||
#ifdef __CELLOS_LV2__
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
int numAllocs = 0;
|
||||
int numFree = 0;
|
||||
|
||||
void* btAlignedAlloc (int size, int alignment)
|
||||
{
|
||||
numAllocs++;
|
||||
return memalign(alignment, size);
|
||||
}
|
||||
|
||||
void btAlignedFree (void* ptr)
|
||||
{
|
||||
numFree++;
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
#else
|
||||
///todo
|
||||
///will add some multi-platform version that works without _aligned_malloc/_aligned_free
|
||||
|
||||
@@ -43,6 +63,7 @@ void btAlignedFree (void* ptr)
|
||||
{
|
||||
delete [] (char*) ptr;
|
||||
}
|
||||
#endif //
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user