target/whirl.c
static void do_op_command_clockwise(WhirlCodeSegment *segment, RingState *state, OpCmd cmd) {
    assert(state->active_ring == OPERATION_RING);

    if (state->op_dir != CLOCKWISE) {
        if (state->cur_op_pos == cmd) {
            emit_one(segment, state);
        }
        emit_zero(segment, state);
    }

    while (state->cur_op_pos != cmd) {
        emit_one(segment, state);
    }

    emit_zero(segment, state);
    emit_zero(segment, state);
}
// Execute a command on the operation ring in a way such that the op
// ring will be clockwise afterward. This expects that the current ring
// is the operations ring
Execute a command on the operation ring in a way such that the op
ring will be clockwise afterward. This expects that the current ring
is the operations ring
Execute a command on the operation ring in a way such that the op ring will be clockwise afterward . This expects that the current ring is the operations ring
static void do_op_command_clockwise(WhirlCodeSegment *segment, RingState *state, OpCmd cmd) {
    assert(state->active_ring == OPERATION_RING);
    if (state->op_dir != CLOCKWISE) {
        if (state->cur_op_pos == cmd) {
            emit_one(segment, state);
        }
        emit_zero(segment, state);
    }
    while (state->cur_op_pos != cmd) {
        emit_one(segment, state);
    }
    emit_zero(segment, state);
    emit_zero(segment, state);
}
static void do_op_command_clockwise ( WhirlCodeSegment * segment , RingState * state , OpCmd cmd ) { assert ( state -> active_ring == OPERATION_RING ) ; if ( state -> op_dir != CLOCKWISE ) { if ( state -> cur_op_pos == cmd ) { emit_one ( segment , state ) ; } emit_zero ( segment , state ) ; } while ( state -> cur_op_pos != cmd ) { emit_one ( segment , state ) ; } emit_zero ( segment , state ) ; emit_zero ( segment , state ) ; }
Execute a command on the operation ring in a way such that the op
ring will be clockwise afterward.
Execute a command on the operation ring in a way such that the op ring will be clockwise afterward .