mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Remove unused float16 type
This commit is contained in:
1 parent
dc775ad9e8
commit
09eaf084d0
1 file changed
+1
-9
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user