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 78be7f7 commit 48f9604Copy full SHA for 48f9604
test/swar/BasicOperations.cpp
@@ -42,7 +42,7 @@ static_assert(
42
);
43
44
TEST_CASE("Jamie's totally working exponentiation :D") {
45
- constexpr auto base = SWAR<8, u32>{0x02'01'05'06}; // 2 | 0 | 5 | 6
+ constexpr auto base = SWAR<8, u32>{0x02'01'05'06}; // 2 | 1 | 5 | 6
46
constexpr auto exponent = SWAR<8, u32>{0x07'00'02'03}; // 7 | 0 | 2 | 3
47
constexpr auto expected = SWAR<8, u32>{0x80'01'19'D8}; // 128 | 1 | 25 | 216
48
constexpr auto actual = exponentiation_OverflowUnsafe(base, exponent);
0 commit comments