Skip to content

Commit

Permalink
Workaround MSVC 19.42.34433 ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Nov 21, 2024
1 parent 4ac22f6 commit 6aea976
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/kfr/math/impl/sin_cos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ KFR_INTRINSIC vec<T, N> trig_fold(const vec<T, N>& x, vec<itype<T>, N>& quadrant
quadrant = broadcastto<itype<T>>(broadcastto<int>(y - floor(y * T(1.0 / 16.0)) * T(16.0)));

const vec<itype<T>, N> odd = (quadrant & 1);
quadrant = quadrant + odd;
quadrant = (quadrant + odd) & itype<T>(7);
y = y + cast<T>(odd);
quadrant = quadrant & 7;

constexpr T hi = constants<T>::fold_constant_hi;
constexpr T rem1 = constants<T>::fold_constant_rem1;
Expand Down

0 comments on commit 6aea976

Please sign in to comment.