byteorder.h 711 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1996, 99, 2003 by Ralf Baechle
  7. */
  8. #ifndef _ASM_BYTEORDER_H
  9. #define _ASM_BYTEORDER_H
  10. #include <asm/types.h>
  11. #ifdef __GNUC__
  12. #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  13. # define __BYTEORDER_HAS_U64__
  14. # define __SWAB_64_THRU_32__
  15. #endif
  16. #endif /* __GNUC__ */
  17. #if defined (__MIPSEB__)
  18. # include <linux/byteorder/big_endian.h>
  19. #elif defined (__MIPSEL__)
  20. # include <linux/byteorder/little_endian.h>
  21. #else
  22. # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
  23. #endif
  24. #endif /* _ASM_BYTEORDER_H */