Mercurial > hg > Gears > GearsAgda
view src/parallel_execution/Stack.cbc @ 433:d920f3a3f037
Refactoring cuda.c
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Oct 2017 15:47:33 +0900 |
parents | 0c113f8e5a3f |
children | 1432d924c472 |
line wrap: on
line source
typedef struct Stack<Type, Impl>{ Type* stack; Type* data; Type* data1; __code whenEmpty(...); __code clear(Impl* stack,__code next(...)); __code push(Impl* stack,Type* data, __code next(...)); __code pop(Impl* stack, __code next(Type* data, ...)); __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...)); __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...)); __code get(Impl* stack, __code next(Type* data, ...)); __code get2(Impl* stack, __code next(Type* data, Type* data1, ...)); __code next(...); } Stack;