20 #define _PSPTYPES_H_ 1
32 #define NULL ((void *) 0)
37 #ifndef PSP_LEGACY_TYPES_DEFINED
38 #define PSP_LEGACY_TYPES_DEFINED
52 #ifndef PSP_LEGACY_VOLATILE_TYPES_DEFINED
53 #define PSP_LEGACY_VOLATILE_TYPES_DEFINED
60 typedef volatile int8_t
vs8;
61 typedef volatile int16_t
vs16;
63 typedef volatile int32_t
vs32;
64 typedef volatile int64_t
vs64;
68 static __inline__ u8 _lb(u32 addr) {
return *(vu8 *)addr; }
69 static __inline__ u16 _lh(u32 addr) {
return *(vu16 *)addr; }
70 static __inline__ u32 _lw(u32 addr) {
return *(vu32 *)addr; }
71 static __inline__ u64 _ld(u32 addr) {
return *(vu64 *)addr; }
73 static __inline__
void _sb(u8 val, u32 addr) { *(vu8 *)addr = val; }
74 static __inline__
void _sh(u16 val, u32 addr) { *(vu16 *)addr = val; }
75 static __inline__
void _sw(u32 val, u32 addr) { *(vu32 *)addr = val; }
76 static __inline__
void _sd(u64 val, u32 addr) { *(vu64 *)addr = val; }
365 unsigned short us[2];
381 unsigned short us[4];
402 unsigned short us[8];
404 unsigned char uc[16];