mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-03 16:09:21 +00:00
First steps
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
// For rand(). We really need a library!
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef _X360
|
||||
#if !defined(_X360) && !defined(__arm__)
|
||||
// For MMX intrinsics
|
||||
#include <xmmintrin.h>
|
||||
#endif
|
||||
@@ -210,7 +210,7 @@ private:
|
||||
FORCEINLINE void NetworkVarConstruct( Vector &v ) { v.Zero(); }
|
||||
|
||||
|
||||
#define USE_M64S ( ( !defined( _X360 ) ) )
|
||||
#define USE_M64S ( ( !defined( _X360 ) && !defined(__arm__) ) )
|
||||
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ public:
|
||||
void Init(short ix = 0, short iy = 0, short iz = 0, short iw = 0 );
|
||||
|
||||
|
||||
#ifdef USE_M64S
|
||||
#if USE_M64S
|
||||
__m64 &AsM64() { return *(__m64*)&x; }
|
||||
const __m64 &AsM64() const { return *(const __m64*)&x; }
|
||||
#endif
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
// Initialization
|
||||
void Init(int ix = 0, int iy = 0, int iz = 0, int iw = 0 );
|
||||
|
||||
#ifdef USE_M64S
|
||||
#if USE_M64S
|
||||
__m64 &AsM64() { return *(__m64*)&x; }
|
||||
const __m64 &AsM64() const { return *(const __m64*)&x; }
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user