File: default_libea_handler.h

package info (click to toggle)
libspe2 2.2.80-95-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 940 kB
  • ctags: 1,214
  • sloc: ansic: 9,316; makefile: 551; ada: 448; sh: 24
file content (19 lines) | stat: -rw-r--r-- 562 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#define SPE_LIBEA_CLASS 0x2105

#define SPE_LIBEA_UNUSED       0x00
#define SPE_LIBEA_CALLOC       0x01
#define SPE_LIBEA_FREE         0x02
#define SPE_LIBEA_MALLOC       0x03
#define SPE_LIBEA_REALLOC      0x04
#define SPE_LIBEA_NR_OPCODES   0x05

extern int _base_spe_default_libea_handler(char *ls, unsigned long args);

#define SPE_LIBEA_OP_SHIFT  24
#define SPE_LIBEA_OP_MASK   0xff
#define SPE_LIBEA_DATA_MASK 0xffffff
#define SPE_LIBEA_OP(_v)   (((_v) >> SPE_LIBEA_OP_SHIFT) & SPE_LIBEA_OP_MASK)
#define SPE_LIBEA_DATA(_v) ((_v) & SPE_LIBEA_DATA_MASK)