annotate src/metaCodeGearExample.cbc @ 1:73127e0ab57c

(none)
author soto@cr.ie.u-ryukyu.ac.jp
date Tue, 08 Sep 2020 18:38:08 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 __code add_stub(struct Context* context) {
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 // Input Data Gear
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 Integer* input1 = &context->data[context->idg + 0]->Integer;
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 Integer* input2 = &context->data[context->idg + 1]->Integer;
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 // set Continuation
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 enum Code next = context->next;
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 // Output Data Gear
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 Integer** O_output = (Integer **)&context->data[context->odg + 0];
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 goto add(context, input1, input2, next, O_output);
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 }
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13