summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/GameListCtrl.cpp
diff options
context:
space:
mode:
authorFiora <fioraaeterna@gmail.com>2014-08-24 11:03:07 -0700
committerFiora <fioraaeterna@gmail.com>2014-09-01 20:41:07 -0700
commitb51aa4fa89c819f12c718a794ee8a62969e8b2d2 (patch)
treeb4b447318c1c6880e929f51f17a8de683fdda2d8 /Source/Core/DolphinWX/GameListCtrl.cpp
parentaec639470f2ae32826b7c0d00e0323a6e3d87f18 (diff)
Rename Log2 and add IsPow2 to MathUtils for future use
Also remove unused pow2/pow2f functions.
Diffstat (limited to 'Source/Core/DolphinWX/GameListCtrl.cpp')
-rw-r--r--Source/Core/DolphinWX/GameListCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp
index 53cdc272e2..84b2d8edff 100644
--- a/Source/Core/DolphinWX/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/GameListCtrl.cpp
@@ -397,7 +397,7 @@ static wxString NiceSizeFormat(u64 _size)
// Find largest power of 2 less than _size.
// div 10 to get largest named unit less than _size
// 10 == log2(1024) (number of B in a KiB, KiB in a MiB, etc)
- const u64 unit = Log2(std::max<u64>(_size, 1)) / 10;
+ const u64 unit = IntLog2(std::max<u64>(_size, 1)) / 10;
const u64 unit_size = (1 << (unit * 10));
// mul 1000 for 3 decimal places, add 5 to round up, div 10 for 2 decimal places