summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/VideoCommon.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/Source/Core/VideoCommon/VideoCommon.h b/Source/Core/VideoCommon/VideoCommon.h
index 5a82026ed8..637cd69e2d 100644
--- a/Source/Core/VideoCommon/VideoCommon.h
+++ b/Source/Core/VideoCommon/VideoCommon.h
@@ -96,25 +96,3 @@ inline u32 Z24ToZ16ToZ24(u32 src)
{
return (src & 0xFFFF00) | (src >> 16);
}
-
-/* Returns the smallest power of 2 which is greater than or equal to num */
-inline u32 MakePow2(u32 num)
-{
- --num;
- num |= num >> 1;
- num |= num >> 2;
- num |= num >> 4;
- num |= num >> 8;
- num |= num >> 16;
- ++num;
- return num;
-}
-
-// returns the exponent of the smallest power of two which is greater than val
-inline unsigned int GetPow2(unsigned int val)
-{
- unsigned int ret = 0;
- for (; val; val >>= 1)
- ++ret;
- return ret;
-}