From 8734138e66bc4176907bb229cc6cdef7e11edfb8 Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Thu, 18 Jul 2024 23:04:48 +0800 Subject: [PATCH] refactor: Disable optimization for some intrinsics --- sse2neon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sse2neon.h b/sse2neon.h index 45da43ff..fc3b21dd 100644 --- a/sse2neon.h +++ b/sse2neon.h @@ -4206,7 +4206,7 @@ FORCE_INLINE __m128d _mm_cvtss_sd(__m128d a, __m128 b) // Convert packed double-precision (64-bit) floating-point elements in a to // packed 32-bit integers with truncation, and store the results in dst. // https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttpd_epi32 -FORCE_INLINE __m128i _mm_cvttpd_epi32(__m128d a) +FORCE_INLINE_OPTNONE __m128i _mm_cvttpd_epi32(__m128d a) { double a0, a1; a0 = sse2neon_recast_u64_f64(vgetq_lane_u64(vreinterpretq_u64_m128d(a), 0)); @@ -9377,7 +9377,7 @@ FORCE_INLINE_OPTNONE void _sse2neon_mm_set_denormals_zero_mode( // Return the current 64-bit value of the processor's time-stamp counter. // https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=rdtsc -FORCE_INLINE uint64_t _rdtsc(void) +FORCE_INLINE_OPTNONE uint64_t _rdtsc(void) { #if defined(__aarch64__) || defined(_M_ARM64) uint64_t val;