| 478 | } |
| 479 | |
| 480 | static word Increment(word *A, unsigned int N, word B=1) |
| 481 | { |
| 482 | word t = A[0]; |
| 483 | A[0] = t+B; |
| 484 | if (A[0] >= t) |
| 485 | return 0; |
| 486 | for (unsigned i=1; i<N; i++) |
| 487 | if (++A[i]) |
| 488 | return 0; |
| 489 | return 1; |
| 490 | } |
| 491 | |
| 492 | static word Decrement(word *A, unsigned int N, word B=1) |
| 493 | { |
no outgoing calls
no test coverage detected