forked from weaselab/conflict-set
Remove bogus assert
This commit is contained in:
+1
-7
@@ -2925,17 +2925,11 @@ horizontalMaxUpTo16(InternalVersionT *vs, InternalVersionT z, int len) {
|
|||||||
uint32_t zero;
|
uint32_t zero;
|
||||||
memcpy(&zero, &z, sizeof(zero));
|
memcpy(&zero, &z, sizeof(zero));
|
||||||
auto zeroVec = _mm512_set1_epi32(zero);
|
auto zeroVec = _mm512_set1_epi32(zero);
|
||||||
auto actual = InternalVersionT(
|
auto max = InternalVersionT(
|
||||||
zero +
|
zero +
|
||||||
_mm512_reduce_max_epi32(_mm512_sub_epi32(
|
_mm512_reduce_max_epi32(_mm512_sub_epi32(
|
||||||
_mm512_mask_loadu_epi32(zeroVec, _mm512_int2mask((1 << len) - 1), vs),
|
_mm512_mask_loadu_epi32(zeroVec, _mm512_int2mask((1 << len) - 1), vs),
|
||||||
zeroVec)));
|
zeroVec)));
|
||||||
// Hope it gets vectorized
|
|
||||||
InternalVersionT max = vs[0];
|
|
||||||
for (int i = 1; i < len; ++i) {
|
|
||||||
max = std::max(vs[i], max);
|
|
||||||
}
|
|
||||||
assert(actual == max);
|
|
||||||
return max;
|
return max;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user