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