Skip to content

Commit 7d8379f

Browse files
committed
todey
1 parent a2e30d6 commit 7d8379f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/swar/BasicOperations.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ static_assert(
4444
static_assert(0b00000010000000110000010100000110 == 0x02'03'05'06);
4545

4646
TEST_CASE("Jamie's totally working exponentiation :D") {
47-
constexpr auto base = SWAR<8, u32>::fromLaneLiterals({2, 3, 5, 6}); // {(2 << 24) + (3 << 16) + (5 << 8) + (6)};
48-
constexpr auto exponent = SWAR<8, u32>::fromLaneLiterals({7, 0, 2, 3}); // 7 | 0 | 2 | 3
49-
constexpr auto expected = SWAR<8, u32>::fromLaneLiterals({128, 1, 25, 216}); // 128 | 1 | 25 | 216
47+
constexpr auto base = SWAR<8, u32>::fromLaneLiterals({2, 3, 5, 6});
48+
constexpr auto exponent = SWAR<8, u32>::fromLaneLiterals({7, 0, 2, 3});
49+
constexpr auto expected = SWAR<8, u32>::fromLaneLiterals({128, 1, 25, 216});
5050
constexpr auto actual = exponentiation_OverflowUnsafe(base, exponent);
5151
static_assert(expected.value() == actual.value());
5252
CHECK(expected.value() == actual.value());

0 commit comments

Comments
 (0)