From 66ef13c0d065066c5ca80abb9a9f720a29b19ae6 Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Tue, 9 Jul 2024 10:48:04 +0800 Subject: [PATCH] wip --- sse2neon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sse2neon.h b/sse2neon.h index 73cf5a91..8a20f088 100644 --- a/sse2neon.h +++ b/sse2neon.h @@ -132,7 +132,7 @@ #include #include -FORCE_INLINE double recast_f64(uint64_t *u64) { +FORCE_INLINE double recast_f64(uint64_t u64) { double f64; memcpy(&f64, u64, sizeof(uint64_t)); return f64; @@ -4199,7 +4199,7 @@ FORCE_INLINE int32_t _mm_cvttsd_si32(__m128d a) { double _a; _a = recast_f64(vgetq_lane_u64(vreinterpretq_u64_m128d(a), 0)); - return (int32_t) _a.f64; + return (int32_t) _a; } // Convert the lower double-precision (64-bit) floating-point element in a to a