mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
msvc, simd: fix simd headers for _M_ARM64EC
This commit is contained in:
@@ -8,21 +8,20 @@
|
|||||||
#ifndef cglm_intrin_h
|
#ifndef cglm_intrin_h
|
||||||
#define cglm_intrin_h
|
#define cglm_intrin_h
|
||||||
|
|
||||||
#if defined( _MSC_VER )
|
#if defined(_MSC_VER) && !defined(_M_ARM64EC)
|
||||||
# if (defined(_M_AMD64) || defined(_M_X64)) || _M_IX86_FP == 2
|
# if (defined(_M_AMD64) || defined(_M_X64)) || _M_IX86_FP == 2
|
||||||
# ifndef __SSE__
|
# ifndef __SSE__
|
||||||
# define __SSE__
|
# define __SSE__
|
||||||
# endif
|
# endif
|
||||||
# ifndef __SSE2__
|
|
||||||
# define __SSE2__
|
|
||||||
# endif
|
|
||||||
# elif _M_IX86_FP == 1
|
# elif _M_IX86_FP == 1
|
||||||
# ifndef __SSE__
|
# ifndef __SSE__
|
||||||
# define __SSE__
|
# define __SSE__
|
||||||
# endif
|
# endif
|
||||||
#endif
|
# endif
|
||||||
/* do not use alignment for older visual studio versions */
|
/* do not use alignment for older visual studio versions */
|
||||||
# if _MSC_VER < 1913 /* Visual Studio 2017 version 15.6 */
|
/* also ARM32 also causes similar error, disable it for now on ARM32 too */
|
||||||
|
# if _MSC_VER < 1913 || _M_ARM /* Visual Studio 2017 version 15.6 */
|
||||||
# define CGLM_ALL_UNALIGNED
|
# define CGLM_ALL_UNALIGNED
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@@ -326,7 +326,7 @@ glm_mat4_inv_neon(mat4 mat, mat4 dest) {
|
|||||||
float32x4_t s1 = glmm_float32x4_SIGNMASK_PNPN, s2;
|
float32x4_t s1 = glmm_float32x4_SIGNMASK_PNPN, s2;
|
||||||
|
|
||||||
#if !CGLM_ARM64
|
#if !CGLM_ARM64
|
||||||
float32x2_t l0, l1;
|
float32x2_t l0, l1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
s2 = vrev64q_f32(s1);
|
s2 = vrev64q_f32(s1);
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
/* do not use alignment for older visual studio versions */
|
/* do not use alignment for older visual studio versions */
|
||||||
|
/* also ARM32 also causes similar error, disable it for now on ARM32 too */
|
||||||
# if _MSC_VER < 1913 || _M_ARM /* Visual Studio 2017 version 15.6 */
|
# if _MSC_VER < 1913 || _M_ARM /* Visual Studio 2017 version 15.6 */
|
||||||
# define CGLM_ALL_UNALIGNED
|
# define CGLM_ALL_UNALIGNED
|
||||||
# define CGLM_ALIGN(X) /* no alignment */
|
# define CGLM_ALIGN(X) /* no alignment */
|
||||||
|
Reference in New Issue
Block a user