byteorder.h 500 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  4. */
  5. #ifndef __ASM_ARC_BYTEORDER_H
  6. #define __ASM_ARC_BYTEORDER_H
  7. #include <asm/types.h>
  8. #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  9. #define __BYTEORDER_HAS_U64__
  10. #define __SWAB_64_THRU_32__
  11. #endif
  12. #ifdef __LITTLE_ENDIAN__
  13. #include <linux/byteorder/little_endian.h>
  14. #else
  15. #include <linux/byteorder/big_endian.h>
  16. #endif /* CONFIG_SYS_BIG_ENDIAN */
  17. #endif /* ASM_ARC_BYTEORDER_H */