mirror of
https://github.com/recp/cglm.git
synced 2026-01-06 15:10:04 +00:00
neon: add neon support for most vec4 operations
This commit is contained in:
@@ -105,10 +105,24 @@ glmm_store3(__m128 vx, float v[3]) {
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__SSE3__)
|
||||
# include <x86intrin.h>
|
||||
#endif
|
||||
|
||||
#if defined(__SSE4_1__)
|
||||
# include <smmintrin.h>
|
||||
#endif
|
||||
|
||||
#if defined(__SSE4_2__)
|
||||
# include <nmmintrin.h>
|
||||
#endif
|
||||
|
||||
/* ARM Neon */
|
||||
#if defined(__ARM_NEON) && defined(__ARM_NEON_FP)
|
||||
#if defined(__ARM_NEON)
|
||||
# include <arm_neon.h>
|
||||
# define CGLM_NEON_FP 1
|
||||
# if defined(__ARM_NEON_FP)
|
||||
# define CGLM_NEON_FP 1
|
||||
# endif
|
||||
#else
|
||||
# undef CGLM_NEON_FP
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user