Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_ARC_BYTEORDER_H |
| 7 | #define __ASM_ARC_BYTEORDER_H |
| 8 | |
| 9 | #include <asm/types.h> |
| 10 | |
| 11 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) |
| 12 | #define __BYTEORDER_HAS_U64__ |
| 13 | #define __SWAB_64_THRU_32__ |
| 14 | #endif |
| 15 | |
| 16 | #ifdef __LITTLE_ENDIAN__ |
| 17 | #include <linux/byteorder/little_endian.h> |
| 18 | #else |
| 19 | #include <linux/byteorder/big_endian.h> |
| 20 | #endif /* CONFIG_SYS_BIG_ENDIAN */ |
| 21 | |
| 22 | #endif /* ASM_ARC_BYTEORDER_H */ |