1 /* SPDX-License-Identifier: GPL-2.0 */
7 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
9 typedef unsigned char u8
;
10 typedef unsigned short u16
;
11 typedef unsigned int u32
;
12 typedef unsigned long long u64
;
13 typedef signed char s8
;
16 typedef long long s64
;
18 /* required for opal-api.h */
31 (void) (&_x == &_y); \
37 (void) (&_x == &_y); \
40 #define min_t(type, a, b) min(((type) a), ((type) b))
41 #define max_t(type, a, b) max(((type) a), ((type) b))
52 #endif /* _TYPES_H_ */