byteorder.h 500 B

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