summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMathew Maidment <mathew1800@gmail.com>2016-02-09 21:24:32 -0500
committerMathew Maidment <mathew1800@gmail.com>2016-02-09 21:24:32 -0500
commit3938fa791ccba17ac3a28602f2897f4e8f441925 (patch)
tree2fbe1b65809b61e90b1c2bdf1c79188be2a5dd54 /Source/Core
parentb8628433f2d0b2aaeaa5d394dd76225d48d3f94c (diff)
parent91772492dd95d13a7c915ae2c7537a381ba05583 (diff)
Merge pull request #3611 from jezze/videocommon-cleanup
VideoCommon: Remove unused pow functions
Diffstat (limited to 'Source/Core')
-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;
-}