Zaggy1024
|
bbd8a218a5
|
AK: Prevent overflow of the min when clamping unsigned values to signed
Also, add some tests for the cases that were broken before.
|
2024-06-24 12:41:32 -06:00 |
|
Zaggy1024
|
172f4588a7
|
Tests/AK: Add some quick tests for AK::clamp_to
|
2024-06-24 12:41:32 -06:00 |
|
Tim Ledbetter
|
817bfef3aa
|
Tests/AK: Add tests for integral log2
|
2024-05-21 09:31:17 +02:00 |
|
Tim Ledbetter
|
d0d81e470e
|
AK: Fix off by one error in integral ceil_log2()
Previously, certain values of `ceil_log2(x)` would be 1 smaller than
`ceil(log2(x))`.
|
2024-05-21 09:31:17 +02:00 |
|
Abuneri
|
b5bed37074
|
AK: Replace FP math in is_power_of with a purely integral algorithm
The previous naive approach was causing test failures because of
rounding issues in some exotic environments. In particular, MSVC
via MSBuild
|
2024-05-07 16:43:34 -06:00 |
|
Tim Ledbetter
|
e4715aa82a
|
AK: Use correct type when calculating integral exp2()
Previously, integral `exp2()` would produce the incorrect result for
exponents above 31.
|
2023-10-27 21:59:44 -04:00 |
|
kleines Filmröllchen
|
a0705202ea
|
Kernel/Ext2: Write superblock backups
We don't ever read them out, but this should make fsck a lot less mad.
|
2023-07-28 14:51:07 +02:00 |
|
Hendiadyoin1
|
581c23dc55
|
AK: Introduce IntegralMath.h starting with pow<I>
|
2022-02-06 17:52:33 +00:00 |
|