Skip to content

Commit

Permalink
fix: refactoring mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed Jan 26, 2024
1 parent 2265a4c commit a7cf1ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crlib/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ class CR_SIMD_ALIGNED SimdVec3Wrap final {
}
#else
CR_FORCE_INLINE SimdVec3Wrap normalize () const {
return { _simd_div (m, simd::sqrt_ps (_simd_dpps <0xff> (m, m))) };
return { _simd_div (m, simd::sqrt_ps (_simd_dpps (m, m))) };
}

CR_FORCE_INLINE float hypot () const {
return vgetq_lane_f32 (simd::sqrt_ps (_simd_dpps <0x71> (m, m)), 0);
return vgetq_lane_f32 (simd::sqrt_ps (_simd_dpps (m, m)), 0);
}

CR_FORCE_INLINE void angleVectors (SimdVec3Wrap &sines, SimdVec3Wrap &cosines) {
Expand Down

0 comments on commit a7cf1ea

Please sign in to comment.