Merge pull request #3611 from jezze/videocommon-cleanup
VideoCommon: Remove unused pow functions
This commit is contained in:
commit
3938fa791c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue