Returns the next power of 2 if Num isn't 2^n or returns Num if Num is 2^n
| 137 | |
| 138 | // Returns the next power of 2 if Num isn't 2^n or returns Num if Num is 2^n |
| 139 | ILAPI ILuint ILAPIENTRY ilNextPower2(ILuint n) |
| 140 | { |
| 141 | ILuint power = 1; |
| 142 | while( power < n ) { |
| 143 | power <<= 1; |
| 144 | } |
| 145 | return power; |
| 146 | } |
| 147 | |
| 148 | ILAPI void ILAPIENTRY iMemSwap(ILubyte *s1, ILubyte *s2, const ILuint size) |
| 149 | { |
no outgoing calls
no test coverage detected