Mercurial > hg > Members > koba > t_dandy
view spe/CollDataReflect.cc @ 60:cfd42ee2ad28
change makefile, spe/task. adjust scale api. worked on ps3-ppe.
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 06 Feb 2011 17:16:43 +0900 |
parents | |
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; }