mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 12:34:24 +00:00
feat: add vec3f tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user