From Box2D
| 518 | |
| 519 | // From Box2D |
| 520 | inline uint32_t NextPowerOfTwo(uint32_t x) |
| 521 | { |
| 522 | x |= (x >> 1); |
| 523 | x |= (x >> 2); |
| 524 | x |= (x >> 4); |
| 525 | x |= (x >> 8); |
| 526 | x |= (x >> 16); |
| 527 | return x + 1; |
| 528 | } |
| 529 | |
| 530 | static bool GetNextCacheSize(HFontMap font_map, uint16_t* width, uint16_t* height) |
| 531 | { |
no outgoing calls
no test coverage detected