blob: 2c38e8c2d5484cd49985e092142fbefa8029e645 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Arnaldo Carvalho de Melo98521b32017-04-25 15:45:35 -03002#ifndef PERF_MEMSWAP_H_
3#define PERF_MEMSWAP_H_
4
Arnaldo Carvalho de Melo5cac8ea2019-09-18 12:28:41 -03005#include <linux/types.h>
6
7union u64_swap {
8 u64 val64;
9 u32 val32[2];
10};
11
Arnaldo Carvalho de Melo98521b32017-04-25 15:45:35 -030012void mem_bswap_64(void *src, int byte_size);
13void mem_bswap_32(void *src, int byte_size);
14
15#endif /* PERF_MEMSWAP_H_ */