Mercurial > hg > Papers > 2017 > ikkun-sigos
view paper/src/twice.c @ 35:7c5d27175aa4 default tip
fix
author | ikkun |
---|---|
date | Tue, 16 May 2017 16:19:47 +0900 |
parents | 38b037c42c34 |
children |
line wrap: on
line source
// Twice __code twice(struct Context* context, struct LoopCounter* loopCounter, int index, int alignment, int* array) { int i = loopCounter->i; if (i < alignment) { array[i+index*alignment] = array[i+index*alignment]*2; loopCounter->i++; goto meta(context, Twice); } loopCounter->i = 0; stack_pop(context->code_stack, &context->next); goto meta(context, context->next); }