Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:33:43

0001 // Copyright 2017, 2018 Peter Dimov.
0002 // Distributed under the Boost Software License, Version 1.0.
0003 // https://www.boost.org/LICENSE_1_0.txt
0004 
0005 #ifndef BOOST_HASH2_ENDIAN_HPP_INCLUDED
0006 #define BOOST_HASH2_ENDIAN_HPP_INCLUDED
0007 
0008 namespace boost
0009 {
0010 namespace hash2
0011 {
0012 
0013 #if defined(_MSC_VER)
0014 
0015 enum class endian
0016 {
0017     little,
0018     big,
0019     native = little
0020 };
0021 
0022 #else
0023 
0024 // GCC 4.6+, Clang 3.2+
0025 
0026 enum class endian
0027 {
0028     little = __ORDER_LITTLE_ENDIAN__,
0029     big = __ORDER_BIG_ENDIAN__,
0030     native = __BYTE_ORDER__
0031 };
0032 
0033 #endif
0034 
0035 } // namespace hash2
0036 } // namespace boost
0037 
0038 #endif // #ifndef BOOST_HASH2_ENDIAN_HPP_INCLUDED