byteorder.h 449 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2011 The Chromium OS Authors.
  4. */
  5. #ifndef __ASM_SANDBOX_BYTEORDER_H
  6. #define __ASM_SANDBOX_BYTEORDER_H
  7. #include <asm/types.h>
  8. #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  9. # define __BYTEORDER_HAS_U64__
  10. # define __SWAB_64_THRU_32__
  11. #endif
  12. #ifdef CONFIG_SANDBOX_BIG_ENDIAN
  13. #include <linux/byteorder/big_endian.h>
  14. #else
  15. #include <linux/byteorder/little_endian.h>
  16. #endif
  17. #endif