]>
Commit | Line | Data |
---|---|---|
8b40f521 JK |
1 | #ifndef __PERF_TYPES_H |
2 | #define __PERF_TYPES_H | |
9cffa8d5 | 3 | |
9486aa38 ACM |
4 | #include <stdint.h> |
5 | ||
9cffa8d5 | 6 | /* |
9486aa38 ACM |
7 | * We define u64 as uint64_t for every architecture |
8 | * so that we can print it with "%"PRIx64 without getting warnings. | |
9cffa8d5 | 9 | */ |
9486aa38 ACM |
10 | typedef uint64_t u64; |
11 | typedef int64_t s64; | |
9cffa8d5 PM |
12 | typedef unsigned int u32; |
13 | typedef signed int s32; | |
14 | typedef unsigned short u16; | |
15 | typedef signed short s16; | |
16 | typedef unsigned char u8; | |
17 | typedef signed char s8; | |
18 | ||
6a11f92e JO |
19 | union u64_swap { |
20 | u64 val64; | |
21 | u32 val32[2]; | |
22 | }; | |
23 | ||
8b40f521 | 24 | #endif /* __PERF_TYPES_H */ |