| 90 | using AlignedVector = std::vector<T, ah::aligned_allocator<T, 16>>; |
| 91 | |
| 92 | static inline size_t align_size(size_t sz, int n) { |
| 93 | megdnn_assert((n & (n - 1)) == 0); |
| 94 | return (sz + n - 1) & -n; |
| 95 | } |
| 96 | |
| 97 | static inline int clip(int x, int a, int b) { |
| 98 | return x >= a ? (x < b ? x : b - 1) : a; |
no outgoing calls
no test coverage detected