rm nextPo2;

This commit is contained in:
bjorn 2019-04-05 03:56:56 -07:00
parent d31dca5520
commit 86a342877f
2 changed files with 0 additions and 12 deletions

View File

@ -155,14 +155,3 @@ fallback:
*pch = ch;
return 1;
}
uint32_t nextPo2(uint32_t x) {
x--;
x |= x >> 1;
x |= x >> 2;
x |= x >> 4;
x |= x >> 8;
x |= x >> 16;
x++;
return x;
}

View File

@ -105,7 +105,6 @@ void lovrSetErrorCallback(lovrErrorHandler callback, void* context);
void _Noreturn lovrThrow(const char* format, ...);
void* _lovrAlloc(size_t size, Type type);
size_t utf8_decode(const char *s, const char *e, unsigned *pch);
uint32_t nextPo2(uint32_t x);
#define lovrAssert(c, ...) if (!(c)) { lovrThrow(__VA_ARGS__); }
#define lovrAlloc(T) (T*) _lovrAlloc(sizeof(T), T_ ## T)