[POWERPC] bootwrapper: cuImage for 85xx
[linux-2.6/linux-2.6-openrd.git] / arch / powerpc / boot / types.h
blob79d26e7086770dcbfed2d6fcce0f74cb32429bfd
1 #ifndef _TYPES_H_
2 #define _TYPES_H_
4 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
6 typedef unsigned char u8;
7 typedef unsigned short u16;
8 typedef unsigned int u32;
9 typedef unsigned long long u64;
11 #define min(x,y) ({ \
12 typeof(x) _x = (x); \
13 typeof(y) _y = (y); \
14 (void) (&_x == &_y); \
15 _x < _y ? _x : _y; })
17 #define max(x,y) ({ \
18 typeof(x) _x = (x); \
19 typeof(y) _y = (y); \
20 (void) (&_x == &_y); \
21 _x > _y ? _x : _y; })
23 #endif /* _TYPES_H_ */