mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-30 07:35:59 +00:00
SSE2: Fix for MinGW
This commit is contained in:
parent
b9576c93dd
commit
56c59d114d
4 changed files with 18 additions and 6 deletions
|
@ -53,8 +53,8 @@ public:
|
|||
uint getNumAllocatedBlocks() const { return _NumAlloc; }
|
||||
private:
|
||||
class CChunk;
|
||||
NL_ALIGN(NL_DEFAULT_MEMORY_ALIGNMENT)
|
||||
class CNode
|
||||
|
||||
class NL_ALIGN(NL_DEFAULT_MEMORY_ALIGNMENT) CNode
|
||||
{
|
||||
public:
|
||||
CChunk *Chunk; // the Chunk this node belongs to.
|
||||
|
|
|
@ -53,8 +53,8 @@ class CPlane;
|
|||
* \author Nevrax France
|
||||
* \date 2000
|
||||
*/
|
||||
NL_ALIGN_SSE2
|
||||
class CMatrix
|
||||
|
||||
class NL_ALIGN_SSE2 CMatrix
|
||||
{
|
||||
public:
|
||||
/// Rotation Order.
|
||||
|
|
|
@ -342,7 +342,7 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
|
|||
// #ifdef NL_ENABLE_FORCE_INLINE
|
||||
# ifdef NL_COMP_VC
|
||||
# define NL_FORCE_INLINE __forceinline
|
||||
# elif NL_COMP_GCC
|
||||
# elif defined(NL_COMP_GCC)
|
||||
# define NL_FORCE_INLINE inline __attribute__((always_inline))
|
||||
# else
|
||||
# define NL_FORCE_INLINE inline
|
||||
|
@ -358,7 +358,10 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
|
|||
#define NL_ALIGN(nb) __attribute__((aligned(nb)))
|
||||
#endif
|
||||
|
||||
#ifdef NL_COMP_VC
|
||||
#ifdef NL_OS_WINDOWS
|
||||
#include <stdlib.h>
|
||||
#include <intrin.h>
|
||||
#include <malloc.h>
|
||||
inline void *aligned_malloc(size_t size, size_t alignment) { return _aligned_malloc(size, alignment); }
|
||||
inline void aligned_free(void *ptr) { _aligned_free(ptr); }
|
||||
#else
|
||||
|
|
|
@ -140,6 +140,11 @@ inline void CMatrix::testExpandRot() const
|
|||
self->Scale33= 1;
|
||||
}
|
||||
}
|
||||
void CMatrix::testExpandRotEx() const
|
||||
{
|
||||
testExpandRot();
|
||||
}
|
||||
|
||||
inline void CMatrix::testExpandProj() const
|
||||
{
|
||||
if(hasProj())
|
||||
|
@ -151,6 +156,10 @@ inline void CMatrix::testExpandProj() const
|
|||
self->a41=0; self->a42=0; self->a43=0; self->a44=1;
|
||||
}
|
||||
}
|
||||
void CMatrix::testExpandProjEx() const
|
||||
{
|
||||
testExpandProj();
|
||||
}
|
||||
|
||||
|
||||
// ======================================================================================================
|
||||
|
|
Loading…
Reference in a new issue