Mercurial > hg > Game > Cerium
view example/dependency_task/ppe/Print.cc @ 354:cfd20d609ace draft
add example/get_segment and change spe/DrawSpan.cpp
author | koba |
---|---|
date | Wed, 15 Jul 2009 17:39:51 +0900 |
parents | 028ffc9c0375 |
children | 839e34d0cc3c |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "Print.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Print); int Print::run(void *rbuf, void *wbuf) { int *idata = (int*)get_input(rbuf, 0); int length = get_param(0); printf("[TASK_PRINT]\n"); for (int i = 0; i < length; i++) { printf("%2d ", idata[i]); } printf("\n"); return 0; }