~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to libs/boost-lib/boost/detail/endian.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2005 Caleb Epstein
 
2
// Copyright 2006 John Maddock
 
3
// Copyright 2010 Rene Rivera
 
4
// Distributed under the Boost Software License, Version 1.0. (See accompany-
 
5
// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
6
 
1
7
/*
2
8
 * Copyright (c) 1997
3
9
 * Silicon Graphics Computer Systems, Inc.
37
43
#  error Unknown machine endianness detected.
38
44
# endif
39
45
# define BOOST_BYTE_ORDER __BYTE_ORDER
 
46
#elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) || \
 
47
    defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
 
48
# define BOOST_BIG_ENDIAN
 
49
# define BOOST_BYTE_ORDER 4321
 
50
#elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN) || \
 
51
    defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
 
52
# define BOOST_LITTLE_ENDIAN
 
53
# define BOOST_BYTE_ORDER 1234
40
54
#elif defined(__sparc) || defined(__sparc__) \
41
55
   || defined(_POWER) || defined(__powerpc__) \
42
 
   || defined(__ppc__) || defined(__hppa) \
 
56
   || defined(__ppc__) || defined(__hpux) || defined(__hppa) \
43
57
   || defined(_MIPSEB) || defined(_POWER) \
44
58
   || defined(__s390__)
45
59
# define BOOST_BIG_ENDIAN