feat: add vec3f tests

This commit is contained in:
2025-06-26 00:16:24 +02:00
parent 3035d12aca
commit a77d9bf585
3 changed files with 157 additions and 7 deletions

View File

@@ -8,12 +8,14 @@
#include <math.h>
#include <float.h>
#if defined(__x86_64__) || defined(__i386__)
#if defined(__x86_64__) || defined(__amd64__) || defined(_M_X64)
#define SIMD_X86
#define SIMD_ENABLE
#include <xmmintrin.h>
#elif defined(__aarch64__) || defined(__arm64__)
#elif defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64)
#define SIMD_ARCH
#define SIMD_ENABLE
#include <arm_neon.h>
#else

View File

@@ -161,7 +161,7 @@ float vec3f_dot(Vec3f_t a, Vec3f_t b)
return vget_lane_f32(final_sum, 0);
#else
return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w;
return a.x * b.x + a.y * b.y + a.z * b.z;
#endif
}