|
Cogs.Foundation
|
#include <cassert>#include <cstdint>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | Cogs |
| Main Cogs namespace. | |
Functions | |
| template<typename T > | |
| bool | Cogs::isPowerOfTwo (T x) |
| uint8_t | Cogs::roundUpToPowerOfTwo (uint8_t x) |
| uint16_t | Cogs::roundUpToPowerOfTwo (uint16_t x) |
| uint16_t | Cogs::roundDownToPowerOfTwo (uint16_t x) |
| uint32_t | Cogs::roundUpToPowerOfTwo (uint32_t x) |
| uint64_t | Cogs::roundUpToPowerOfTwo (uint64_t x) |
| uint8_t | Cogs::roundUpToPowerOfTwoShift (uint8_t x) |
| uint16_t | Cogs::roundUpToPowerOfTwoShift (uint16_t x) |
| uint32_t | Cogs::roundUpToPowerOfTwoShift (uint32_t x) |
| uint64_t | Cogs::roundUpToPowerOfTwoShift (uint64_t x) |