blob: ba3c1643d9d02fdab809c01a3f6d2b4ea983a5f4 [file] [log] [blame]
Simon Glassb4a905e2011-10-10 08:22:14 +00001/*
2 * Copyright (c) 2011 The Chromium OS Authors.
3 *
Wolfgang Denkbd8ec7e2013-10-07 13:07:26 +02004 * SPDX-License-Identifier: GPL-2.0+
Simon Glassb4a905e2011-10-10 08:22:14 +00005 */
6
7#ifndef __ASM_SANDBOX_BYTEORDER_H
8#define __ASM_SANDBOX_BYTEORDER_H
9
10
11#include <asm/types.h>
12
13#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
14# define __BYTEORDER_HAS_U64__
15# define __SWAB_64_THRU_32__
16#endif
17
18#ifdef CONFIG_SANDBOX_BIG_ENDIAN
19#include <linux/byteorder/big_endian.h>
20#else
21#include <linux/byteorder/little_endian.h>
22#endif
23
24#endif