2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __ASM_ARC_BYTEORDER_H
8 #define __ASM_ARC_BYTEORDER_H
10 #include <asm/types.h>
12 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
13 #define __BYTEORDER_HAS_U64__
14 #define __SWAB_64_THRU_32__
17 #ifdef __LITTLE_ENDIAN__
18 #include <linux/byteorder/little_endian.h>
20 #include <linux/byteorder/big_endian.h>
21 #endif /* CONFIG_SYS_BIG_ENDIAN */
23 #endif /* ASM_ARC_BYTEORDER_H */