Get the open source Bullet library more in sync with Playstation SPU version

This commit is contained in:
ejcoumans
2007-04-10 01:02:58 +00:00
parent 9546633ade
commit 853bafb7ae
25 changed files with 272 additions and 130 deletions

View File

@@ -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