byteorder.h 449 B

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