| 48 | } |
| 49 | |
| 50 | PX_INLINE bool isPowerOfTwo(uint32_t x) |
| 51 | { |
| 52 | return x != 0 && (x & (x - 1)) == 0; |
| 53 | } |
| 54 | |
| 55 | // "Next Largest Power of 2 |
| 56 | // Given a binary integer value x, the next largest power of 2 can be computed by a SWAR algorithm |
no outgoing calls
no test coverage detected