| 197 | } |
| 198 | |
| 199 | static word Decrement(word *A, unsigned int N, word B=1) |
| 200 | { |
| 201 | assert(N); |
| 202 | word t = A[0]; |
| 203 | A[0] = t-B; |
| 204 | if (A[0] <= t) |
| 205 | return 0; |
| 206 | for (unsigned i=1; i<N; i++) |
| 207 | if (A[i]--) |
| 208 | return 0; |
| 209 | return 1; |
| 210 | } |
| 211 | |
| 212 | static void TwosComplement(word *A, unsigned int N) |
| 213 | { |
no outgoing calls
no test coverage detected