Skip to content

Commit

Permalink
Merge pull request #2365 from johnplatts:hwy_compile_fix_103024
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 691443199
  • Loading branch information
copybara-github committed Oct 30, 2024
2 parents 00fe003 + 91c11d0 commit 1eb6fa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hwy/tests/concat_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct TestConcatOddEven {
HWY_NOINLINE void operator()(T /*unused*/, D d) {
#if HWY_TARGET != HWY_SCALAR
const size_t N = Lanes(d);
const Vec<D> hi = Iota(d, hwy::Unpredictable1() + N - 1); // N, N+1, ...
const Vec<D> lo = Iota(d, hwy::Unpredictable1() - 1); // 0,1,2,3,...
const Vec<D> hi = Iota(
d, static_cast<size_t>(hwy::Unpredictable1()) + N - 1); // N, N+1, ...
const Vec<D> lo = Iota(d, hwy::Unpredictable1() - 1); // 0,1,2,3,...
const Vec<D> even = Add(lo, lo);
const Vec<D> odd = Add(even, Set(d, 1));
HWY_ASSERT_VEC_EQ(d, odd, ConcatOdd(d, hi, lo));
Expand Down

0 comments on commit 1eb6fa5

Please sign in to comment.