diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /tools/perf/util/types.h | |
Diffstat (limited to 'tools/perf/util/types.h')
| -rw-r--r-- | tools/perf/util/types.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/perf/util/types.h b/tools/perf/util/types.h new file mode 100644 index 00000000..c51fa6b7 --- /dev/null +++ b/tools/perf/util/types.h @@ -0,0 +1,24 @@ +#ifndef __PERF_TYPES_H +#define __PERF_TYPES_H + +#include <stdint.h> + +/* + * We define u64 as uint64_t for every architecture + * so that we can print it with "%"PRIx64 without getting warnings. + */ +typedef uint64_t u64; +typedef int64_t s64; +typedef unsigned int u32; +typedef signed int s32; +typedef unsigned short u16; +typedef signed short s16; +typedef unsigned char u8; +typedef signed char s8; + +union u64_swap { + u64 val64; + u32 val32[2]; +}; + +#endif /* __PERF_TYPES_H */ |
