| 193 | |
| 194 | template<int n, typename T> |
| 195 | constexpr bool IsAligned(T x) { |
| 196 | static_assert((n & (n - 1)) == 0, "n is not a power of two"); |
| 197 | return (x & (n - 1)) == 0; |
| 198 | } |
| 199 | |
| 200 | template<int n, typename T> |
| 201 | inline bool IsAligned(T* x) { |
nothing calls this directly
no outgoing calls
no test coverage detected