mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove unused float16 type
This commit is contained in:
parent
dc775ad9e8
commit
09eaf084d0
1 changed files with 1 additions and 9 deletions
|
@ -7,15 +7,6 @@
|
|||
#include <cstring>
|
||||
#include <cstdint>
|
||||
|
||||
typedef unsigned short float16;
|
||||
|
||||
inline float Float16ToFloat(float16 ix) {
|
||||
uint32_t extended = ix;
|
||||
float x;
|
||||
memcpy(&x, &extended, sizeof(float));
|
||||
return x;
|
||||
}
|
||||
|
||||
inline bool isPowerOf2(int n) {
|
||||
return n == 1 || (n & (n - 1)) == 0;
|
||||
}
|
||||
|
@ -36,6 +27,7 @@ inline uint32_t RoundUpToPowerOf2(uint32_t v, uint32_t power) {
|
|||
return (v + power - 1) & ~(power - 1);
|
||||
}
|
||||
|
||||
// TODO: this should just use a bitscan.
|
||||
inline uint32_t log2i(uint32_t val) {
|
||||
unsigned int ret = -1;
|
||||
while (val != 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue