Added multi-threaded collision detection. Original code is written for Cell SPU, but wrappers are provided to run on multi-core using Win32 Threads.

SpuLibspe2Support is on the todo list, so it can run on Cell Blade & PS3 Linux.
This commit is contained in:
ejcoumans
2007-06-13 01:04:43 +00:00
parent a0c6adf5d6
commit 6f26aa1591
34 changed files with 5508 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
#ifndef TYPE_DEFINITIONS_H
#define TYPE_DEFINITIONS_H
#include <LinearMath/btScalar.h>
///This file provides some platform/compiler checks for common definitions
#ifdef WIN32
#if defined(__MINGW32__) || defined(__CYGWIN__) || (defined (_MSC_VER) && _MSC_VER < 1300)
#else
#endif //__MINGW32__
typedef unsigned char uint8_t;
typedef unsigned long int uint64_t;
typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
#include <malloc.h>
#define memalign(alignment, size) malloc(size);
#include <string.h> //memcpy
#define USE_WIN32_THREADING 1
#else
#if defined (__CELLOS_LV2__)
///Playstation 3 Cell SDK
#else
//non-windows systems
#define USE_PTHREADS 1
#endif //__CELLOS_LV2__
#include <stdint.h>
#include <stdlib.h>
#endif
#endif //TYPE_DEFINITIONS_H