blob: 25e9aff42592e6fa156eed669eafd98d4d72235e [file] [log] [blame]
Wolfgang Denk83c15852006-10-24 14:21:16 +02001/*
2 * Copyright (C) 2006 Atmel Corporation
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk83c15852006-10-24 14:21:16 +02005 */
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 */