Mercurial > hg > GearsTemplate
view src/parallel_execution/twice.cbc @ 338:0d720487291f
remove stub from RedBlackTree.cbc
author | mir3636 |
---|---|
date | Tue, 09 May 2017 12:08:29 +0900 |
parents | f1b0cc555b6e |
children |
line wrap: on
line source
#include <stdio.h> #include "../context.h" __code twice(struct LoopCounter* loopCounter, int index, int prefix, int* array) { int i = loopCounter->i; if (i < prefix) { array[i+index*prefix] = array[i+index*prefix]*2; loopCounter->i++; goto meta(context, C_twice); } loopCounter->i = 0; goto meta(context, context->next); } __code twice_stub(struct Context* context) { struct LoopCounter* loopCounter = &context->data[context->dataNum]->LoopCounter; struct Array* array = &context->data[context->dataNum+1]->Array; goto twice(context, loopCounter, array->index, array->prefix, array->array); }