| 663 | } |
| 664 | |
| 665 | static bool cv2_work(cv2_context_t *ctx, unsigned units) { |
| 666 | ctx->work += units; |
| 667 | if (ctx->work >= 4096) |
| 668 | return cv2_poll(ctx); |
| 669 | return ctx->status == CBM_COVERAGE_PARSE_OK; |
| 670 | } |
| 671 | |
| 672 | static bool cv2_step(cv2_context_t *ctx) { |
| 673 | return cv2_work(ctx, 1); |