소스 검색

Added x64 check for SSE Intrinsic functions

Marc Chapman 9 년 전
부모
커밋
00cf5ab577

+ 1 - 1
Engine/source/math/mMathSSE.cpp

@@ -203,7 +203,7 @@ extern "C"
    void SSE_MatrixF_x_MatrixF_Aligned(const F32 *matA, const F32 *matB, F32 *result);
    void SSE_MatrixF_x_MatrixF_Aligned(const F32 *matA, const F32 *matB, F32 *result);
 }
 }
 
 
-#elif defined( TORQUE_COMPILER_GCC ) && defined( TORQUE_CPU_X86 )
+#elif defined( TORQUE_COMPILER_GCC ) && (defined( TORQUE_CPU_X86 ) || defined( TORQUE_CPU_X64 ))
 #define ADD_SSE_FN
 #define ADD_SSE_FN
 
 
 void SSE_MatrixF_x_MatrixF(const F32 *matA, const F32 *matB, F32 *result)
 void SSE_MatrixF_x_MatrixF(const F32 *matA, const F32 *matB, F32 *result)

+ 1 - 1
Engine/source/ts/arch/tsMeshIntrinsics.arch.h

@@ -23,7 +23,7 @@
 #ifndef _TSMESHINTRINSICS_ARCH_H_
 #ifndef _TSMESHINTRINSICS_ARCH_H_
 #define _TSMESHINTRINSICS_ARCH_H_
 #define _TSMESHINTRINSICS_ARCH_H_
 
 
-#if defined(TORQUE_CPU_X86)
+#if (defined( TORQUE_CPU_X86 ) || defined( TORQUE_CPU_X64 )) 
 # // x86 CPU family implementations
 # // x86 CPU family implementations
 extern void zero_vert_normal_bulk_SSE(const dsize_t count, U8 * __restrict const outPtr, const dsize_t outStride);
 extern void zero_vert_normal_bulk_SSE(const dsize_t count, U8 * __restrict const outPtr, const dsize_t outStride);
 #
 #

+ 1 - 1
Engine/source/ts/arch/tsMeshIntrinsics.sse.cpp

@@ -21,7 +21,7 @@
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 #include "ts/tsMesh.h"
 #include "ts/tsMesh.h"
 
 
-#if defined(TORQUE_CPU_X86)
+#if (defined( TORQUE_CPU_X86 ) || defined( TORQUE_CPU_X64 ))
 #include "ts/tsMeshIntrinsics.h"
 #include "ts/tsMeshIntrinsics.h"
 #include <xmmintrin.h>
 #include <xmmintrin.h>
 
 

+ 1 - 1
Engine/source/ts/arch/tsMeshIntrinsics.sse4.cpp

@@ -21,7 +21,7 @@
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 #include "ts/tsMesh.h"
 #include "ts/tsMesh.h"
 
 
-#if defined(TORQUE_CPU_X86) && (_MSC_VER >= 1500)
+#if (defined(TORQUE_CPU_X86)  || defined( TORQUE_CPU_X64 )) && (_MSC_VER >= 1500)
 #include "ts/tsMeshIntrinsics.h"
 #include "ts/tsMeshIntrinsics.h"
 #include <smmintrin.h>
 #include <smmintrin.h>
 
 

+ 1 - 1
Engine/source/ts/tsMeshIntrinsics.cpp

@@ -65,7 +65,7 @@ MODULE_BEGIN( TSMeshIntrinsics )
       // Find the best implementation for the current CPU
       // Find the best implementation for the current CPU
       if(Platform::SystemInfo.processor.properties & CPU_PROP_SSE)
       if(Platform::SystemInfo.processor.properties & CPU_PROP_SSE)
       {
       {
-   #if defined(TORQUE_CPU_X86)
+   #if (defined( TORQUE_CPU_X86 ) || defined( TORQUE_CPU_X64 )) 
          
          
          zero_vert_normal_bulk = zero_vert_normal_bulk_SSE;
          zero_vert_normal_bulk = zero_vert_normal_bulk_SSE;
    #endif
    #endif