Go to the documentation of this file.
20 #ifndef __PVRUSB2_UTIL_H
21 #define __PVRUSB2_UTIL_H
23 #define PVR2_DECOMPOSE_LE(t,i,d) \
26 (t)[i+1] = ((d) >> 8) & 0xff;\
27 (t)[i+2] = ((d) >> 16) & 0xff;\
28 (t)[i+3] = ((d) >> 24) & 0xff;\
31 #define PVR2_DECOMPOSE_BE(t,i,d) \
33 (t)[i+3] = (d) & 0xff;\
34 (t)[i+2] = ((d) >> 8) & 0xff;\
35 (t)[i+1] = ((d) >> 16) & 0xff;\
36 (t)[i] = ((d) >> 24) & 0xff;\
39 #define PVR2_COMPOSE_LE(t,i) \
40 ((((u32)((t)[i+3])) << 24) | \
41 (((u32)((t)[i+2])) << 16) | \
42 (((u32)((t)[i+1])) << 8) | \
45 #define PVR2_COMPOSE_BE(t,i) \
46 ((((u32)((t)[i])) << 24) | \
47 (((u32)((t)[i+1])) << 16) | \
48 (((u32)((t)[i+2])) << 8) | \