From 33e5eb7423a20bede0f933d9fdf3dc3d5e07fe72 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Thu, 2 Mar 2023 13:24:25 +0100 Subject: [PATCH] Enable simd for aarch64-apple-darwin --- physx/include/foundation/PxVecMath.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/physx/include/foundation/PxVecMath.h b/physx/include/foundation/PxVecMath.h index f805c55e9..1c7be7b20 100644 --- a/physx/include/foundation/PxVecMath.h +++ b/physx/include/foundation/PxVecMath.h @@ -47,13 +47,15 @@ // enable/disable SIMD #if !defined(PX_SIMD_DISABLED) -#if PX_INTEL_FAMILY && (!defined(__EMSCRIPTEN__) || defined(__SSE2__)) - #define COMPILE_VECTOR_INTRINSICS 1 -#elif PX_SWITCH - #define COMPILE_VECTOR_INTRINSICS 1 -#else - #define COMPILE_VECTOR_INTRINSICS 0 -#endif + #if PX_INTEL_FAMILY && (!defined(__EMSCRIPTEN__) || defined(__SSE2__)) + #define COMPILE_VECTOR_INTRINSICS 1 + #elif PX_SWITCH + #define COMPILE_VECTOR_INTRINSICS 1 + #elif PX_OSX && PX_A64 + #define COMPILE_VECTOR_INTRINSICS 1 + #else + #define COMPILE_VECTOR_INTRINSICS 0 + #endif #else #define COMPILE_VECTOR_INTRINSICS 0 #endif