| 490 | } |
| 491 | |
| 492 | static word Decrement(word *A, unsigned int N, word B=1) |
| 493 | { |
| 494 | word t = A[0]; |
| 495 | A[0] = t-B; |
| 496 | if (A[0] <= t) |
| 497 | return 0; |
| 498 | for (unsigned i=1; i<N; i++) |
| 499 | if (A[i]--) |
| 500 | return 0; |
| 501 | return 1; |
| 502 | } |
| 503 | |
| 504 | static void TwosComplement(word *A, unsigned int N) |
| 505 | { |
no outgoing calls
no test coverage detected