xref: /linux/tools/perf/util/memswap.h (revision 24bce201d79807b668bf9d9e0aca801c5c0d5f78)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef PERF_MEMSWAP_H_
3 #define PERF_MEMSWAP_H_
4 
5 #include <linux/types.h>
6 
7 union u64_swap {
8 	u64 val64;
9 	u32 val32[2];
10 };
11 
12 void mem_bswap_64(void *src, int byte_size);
13 void mem_bswap_32(void *src, int byte_size);
14 
15 #endif /* PERF_MEMSWAP_H_ */
16