blob: 592f10a076bddc8ae098bf90830961b43e43389a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassb4a905e2011-10-10 08:22:14 +00002/*
3 * Copyright (c) 2011 The Chromium OS Authors.
Simon Glassb4a905e2011-10-10 08:22:14 +00004 */
5
6#ifndef __ASM_SANDBOX_BYTEORDER_H
7#define __ASM_SANDBOX_BYTEORDER_H
8
Simon Glassb4a905e2011-10-10 08:22:14 +00009#include <asm/types.h>
10
11#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
12# define __BYTEORDER_HAS_U64__
13# define __SWAB_64_THRU_32__
14#endif
15
16#ifdef CONFIG_SANDBOX_BIG_ENDIAN
17#include <linux/byteorder/big_endian.h>
18#else
19#include <linux/byteorder/little_endian.h>
20#endif
21
22#endif