| 16 | /////////// helper /////////// |
| 17 | |
| 18 | static inline size_t align_size(size_t sz, int n) { |
| 19 | megdnn_assert((n & (n - 1)) == 0); |
| 20 | return (sz + n - 1) & -n; |
| 21 | } |
| 22 | |
| 23 | static inline int clip(int x, int a, int b) { |
| 24 | return x >= a ? (x < b ? x : b - 1) : a; |
no outgoing calls
no test coverage detected