mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
AK: Delete unused and untested sqrt, pow and pow_mod from UFixedBigInt
This commit is contained in:
parent
8f8e31e780
commit
2470fab05e
Notes:
sideshowbarker
2024-07-16 23:27:19 +09:00
Author: https://github.com/DanShaders
Commit: 2470fab05e
Pull-request: https://github.com/SerenityOS/serenity/pull/17330
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Hendiadyoin1
2 changed files with 2 additions and 133 deletions
|
@ -39,15 +39,6 @@ TEST_CASE(identities)
|
|||
}
|
||||
}
|
||||
|
||||
TEST_CASE(sqrt)
|
||||
{
|
||||
srand(0);
|
||||
for (int i = 0; i < test_iterations; ++i) {
|
||||
u256 x = get_random<u128>();
|
||||
EXPECT_EQ((x * x).sqrt(), x);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE(add_overflow_propagation)
|
||||
{
|
||||
u256 a = NumericLimits<u128>::max();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue