| 10 | |
| 11 | namespace { |
| 12 | static inline int gcd(const int& p, const int& q) { |
| 13 | int x = p, y = q; |
| 14 | while (y != 0) { |
| 15 | if (x < y) { |
| 16 | y = (y % x); |
| 17 | } else { |
| 18 | x = (x % y); |
| 19 | std::swap(x, y); |
| 20 | } |
| 21 | } |
| 22 | return x; |
| 23 | } |
| 24 | |
| 25 | static inline size_t extra_alignment( |
| 26 | ReformatManager::ReformatKey::Attribute attr, TensorFormats target_formats, |
no test coverage detected