mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Added x64 check for SSE Intrinsic functions
This commit is contained in:
parent
bcb56a027d
commit
00cf5ab577
5 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue