From f45504bcc136b876220b0799cade96d53fc31f62 Mon Sep 17 00:00:00 2001 From: tylermorganwall Date: Wed, 6 Nov 2024 23:30:40 -0500 Subject: [PATCH] rayrender v0.35.2: Fix SSE SIMD code and add unit tests --- DESCRIPTION | 4 ++-- src/simd.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index b51a3af0..e57d467d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: rayrender Type: Package Title: Build and Raytrace 3D Scenes -Version: 0.35.1 -Date: 2024-11-02 +Version: 0.35.2 +Date: 2024-11-06 Authors@R: c(person("Tyler", "Morgan-Wall", email = "tylermw@gmail.com", role = c("aut", "cph", "cre"), comment = c(ORCID = "0000-0002-3131-3814")), person("Syoyo", "Fujita", role=c("ctb", "cph")), diff --git a/src/simd.h b/src/simd.h index 415965c1..13126f12 100644 --- a/src/simd.h +++ b/src/simd.h @@ -810,9 +810,6 @@ inline int simd_extract_hitmask(const IVec4& vec) { // Use _mm_movemask_ps to extract the sign bits int mask = _mm_movemask_ps(float_vals); // Extracts the sign bits of each float - // The sign bits are in the higher bits; adjust them to lower bits - mask = mask >> 4; // Since _mm_movemask_ps puts the bits in the higher 4 bits - return mask & 0xF; // Ensure only the lower 4 bits are used #elif defined(HAS_NEON)