| 186 | |
| 187 | template <typename T> |
| 188 | constexpr T AbsDiff(T a, T b) { |
| 189 | static_assert(std::is_unsigned_v<T>); |
| 190 | return a > b ? a - b : b - a; |
| 191 | } |
| 192 | |
| 193 | static inline uint32_t GetSmallestGreaterOrEquallPowerOfTwo(uint32_t v) { |
| 194 | v--; |
no outgoing calls
no test coverage detected