byteorder.h 472 B

123456789101112131415161718192021
  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. #include <asm/types.h>
  9. #define __arch__swab32(x) __builtin_bswap_32(x)
  10. #define __arch__swab16(x) __builtin_bswap_16(x)
  11. #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  12. # define __BYTEORDER_HAS_U64__
  13. # define __SWAB_64_THRU_32__
  14. #endif
  15. #include <linux/byteorder/big_endian.h>
  16. #endif /* __ASM_AVR32_BYTEORDER_H */