]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/avr32/include/asm/byteorder.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / avr32 / include / asm / byteorder.h
1 /*
2  * Copyright (C) 2006 Atmel Corporation
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
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 */