byteorder.h 756 B

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