2 * Copyright (C) 2006 Atmel Corporation
4 * SPDX-License-Identifier: GPL-2.0+
6 #ifndef __ASM_AVR32_BYTEORDER_H
7 #define __ASM_AVR32_BYTEORDER_H
11 #define __arch__swab32(x) __builtin_bswap_32(x)
12 #define __arch__swab16(x) __builtin_bswap_16(x)
14 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
15 # define __BYTEORDER_HAS_U64__
16 # define __SWAB_64_THRU_32__
19 #include <linux/byteorder/big_endian.h>
21 #endif /* __ASM_AVR32_BYTEORDER_H */