Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006 Atmel Corporation |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ASM_AVR32_BYTEORDER_H |
| 7 | #define __ASM_AVR32_BYTEORDER_H |
| 8 | |
| 9 | #include <asm/types.h> |
| 10 | |
| 11 | #define __arch__swab32(x) __builtin_bswap_32(x) |
| 12 | #define __arch__swab16(x) __builtin_bswap_16(x) |
| 13 | |
| 14 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) |
| 15 | # define __BYTEORDER_HAS_U64__ |
| 16 | # define __SWAB_64_THRU_32__ |
| 17 | #endif |
| 18 | |
| 19 | #include <linux/byteorder/big_endian.h> |
| 20 | |
| 21 | #endif /* __ASM_AVR32_BYTEORDER_H */ |