Mercurial > hg > Members > koba > t_dandy
view spe/CollDataReflect.cc @ 61:e66cab264350
RenderingEngine Task is worked on spe, task_dandy Task is worked on ppe
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 06 Feb 2011 18:11:30 +0900 |
parents | cfd42ee2ad28 |
children |
line wrap: on
line source
#include <string.h> #include "task_base.h" #include "task_object.h" SchedDefineTask1(CollDataReflect, coll_reflect); static int coll_reflect(SchedTask *smanager, void *rbuf, void *wbuf) { long load_id = (long)smanager->get_param(0); void* odata = smanager->get_output(wbuf, 0); long size = (long)smanager->get_outputSize(0); void *global_data = (void*)smanager->global_get(load_id); memcpy(odata, global_data, size); return 0; }