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
|
||||
#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
|
||||
# ifndef __SSE__
|
||||
# define __SSE__
|
||||
# endif
|
||||
# ifndef __SSE2__
|
||||
# define __SSE2__
|
||||
# endif
|
||||
|
||||
# elif _M_IX86_FP == 1
|
||||
# ifndef __SSE__
|
||||
# define __SSE__
|
||||
# endif
|
||||
#endif
|
||||
# endif
|
||||
/* 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
|
||||
# endif
|
||||
#endif
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
/* 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 */
|
||||
# define CGLM_ALL_UNALIGNED
|
||||
# define CGLM_ALIGN(X) /* no alignment */
|
||||
|
Reference in New Issue
Block a user