| 9 | namespace { |
| 10 | |
| 11 | void rotate(uint32_t n, uint32_t& x, uint32_t& y, bool rx, bool ry) { |
| 12 | if (ry) { |
| 13 | return; |
| 14 | } |
| 15 | |
| 16 | if (rx) { |
| 17 | x = n - 1 - x; |
| 18 | y = n - 1 - y; |
| 19 | } |
| 20 | |
| 21 | uint32_t t = x; |
| 22 | x = y; |
| 23 | y = t; |
| 24 | } |
| 25 | |
| 26 | } // namespace |
| 27 |
no outgoing calls
no test coverage detected