mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-17 13:39:04 +00:00
update Cheat files
This commit is contained in:
parent
9ab8c1e433
commit
cbfd634a4b
217 changed files with 2263 additions and 1880 deletions
|
@ -547,7 +547,7 @@ std::string FormatSize(u64 bytes, int decimals)
|
|||
// div 10 to get largest named unit less than size
|
||||
// 10 == log2(1024) (number of B in a KiB, KiB in a MiB, etc)
|
||||
// Max value is 63 / 10 = 6
|
||||
const int unit = IntLog2(std::max<u64>(bytes, 1)) / 10;
|
||||
const int unit = MathUtil::IntLog2(std::max<u64>(bytes, 1)) / 10;
|
||||
|
||||
// Don't need exact values, only 5 most significant digits
|
||||
const double unit_size = std::pow(2, unit * 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue