T_CPU macro
Hello.
The T_CPU macro is probably missing parentheses around the cpu argument (IMHO):
#define T_CPU(cpu) (1 << (24 + (cpu & 7)))
should be:
#define T_CPU(cpu) (1 << (24 + ((cpu) & 7)))
It's located in the include/trank/native/task.h file.
Petr