comparison example/task_queue/spe/Hello.cc @ 626:ab866bc8a624

64bit mode compatibility on Cell
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2009 11:37:26 +0900
parents 36b323130b1b
children
comparison
equal deleted inserted replaced
625:60aa3f241b10 626:ab866bc8a624
7 SchedDefineTask(Hello); 7 SchedDefineTask(Hello);
8 8
9 static int 9 static int
10 run(SchedTask *smanager, void *rbuf, void *wbuf) 10 run(SchedTask *smanager, void *rbuf, void *wbuf)
11 { 11 {
12 int task_id = smanager->get_param(0); 12 int task_id = (long)smanager->get_param(0);
13 13
14 smanager->printf("[%d] Hello, World!!\n", task_id); 14 smanager->printf("[%d] Hello, World!!\n", task_id);
15 15
16 #if 0 16 #if 0
17 we don't have TaskQueue in spu 17 we don't have TaskQueue in spu