Mercurial > hg > Papers > 2016 > kkb-master
view paper/src/twice_cerium.cc @ 16:958634b9fa32
make paper directory
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 17 Feb 2016 16:59:46 +0900 |
parents | src/twice_cerium.cc@12d1c2f53258 |
children |
line wrap: on
line source
static int twice(SchedTask *s,void *rbuf, void *wbuf) { /** * Get Input Data * get_input(input data buffer, index) */ int* input = (int*)s->get_input(rbuf, 0); /** * Get Output Data * get_output(output data buffer, index) */ int* output = (int*)s->get_output(wbuf, 0); /** * Get index(x, y, z) * SchedTask member * x : SchedTask->x * y : SchedTask->y * z : SchedTask->z */ long i = s->x; output[i] = input[i]*2; return 0; }