| 27 | } |
| 28 | |
| 29 | int fast_pow(int x, int y) { |
| 30 | int res = 1; |
| 31 | for (int offset = sizeof(int) * 8 - 1; offset >= 0; offset --) { |
| 32 | res *= res; |
| 33 | if (y & (1 << offset)) res *= x; |
| 34 | } |
| 35 | return res; |
| 36 | } |
| 37 | |
| 38 | }; |
| 39 |
nothing calls this directly
no outgoing calls
no test coverage detected