Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/spe/DataAllocate.cc @ 983:ff74988bbb2a
minor fix
author | root@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 01 Oct 2010 00:37:06 +0900 |
parents | ad10d6d39ca6 |
children | ac437c3cf766 |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "DataAllocate.h" #include "Func.h" /* これは必須 */ SchedDefineTask(DataAllocate); static int run(SchedTask *s, void *rbuf, void *wbuf) { void *idata = s->get_input(rbuf, 0); long size = (long)s->get_param(0); long load_id = (long)s->get_param(1); void *buff = s->global_alloc(load_id, size); if (idata != NULL) { memcpy(buff,idata,size); } return 0; }