Skip to content

Commit

Permalink
rayrender v0.35.2: Fix SSE SIMD code and add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermorganwall committed Nov 7, 2024
1 parent beed16a commit f45504b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]",
role = c("aut", "cph", "cre"), comment = c(ORCID = "0000-0002-3131-3814")),
person("Syoyo", "Fujita", role=c("ctb", "cph")),
Expand Down
3 changes: 0 additions & 3 deletions src/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f45504b

Please sign in to comment.