We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b613ee commit fa0667bCopy full SHA for fa0667b
inc/zoo/swar/associative_iteration.h
@@ -520,26 +520,6 @@ constexpr auto deinterleaveLanesOfPair = [](auto even, auto odd) {
520
return std::make_pair(lower, upper);
521
};
522
523
-namespace test_deinterleaving {
524
-
525
-template <int NB, typename T>
526
-auto test = [](auto a, auto b, auto expected_lower, auto expected_upper) {
527
- auto [lower, upper] = deinterleaveLanesOfPair<NB, T>(a, b);
528
- auto lower_ok = lower.value() == expected_lower.value();
529
- auto upper_ok = upper.value() == expected_upper.value();
530
- return lower_ok && upper_ok;
531
-};
532
533
-using S = SWAR<8, uint32_t>;
534
-static_assert(test<8, uint32_t>(
535
- S{0xFDFCFBFA}, // input a
536
- S{0xF4F3F2F1}, // input b
537
- S{0x4D3C2B1A}, // expected lower
538
- S{0xFFFFFFFF} // expected upper
539
-));
540
541
-} // namespace test_deinterleaving
542
543
template <int NB, typename T>
544
constexpr MultiplicationResult<NB, T>
545
wideningMultiplication(SWAR<NB, T> multiplicand, SWAR<NB, T> multiplier) {
0 commit comments