Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:17

0001 //  Copyright (C) 2009, 2016 Tim Blechmann
0002 //
0003 //  Distributed under the Boost Software License, Version 1.0. (See
0004 //  accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 #ifndef BOOST_LOCKFREE_PREFIX_HPP_INCLUDED
0008 #define BOOST_LOCKFREE_PREFIX_HPP_INCLUDED
0009 
0010 /* this file defines the following macros:
0011    BOOST_LOCKFREE_CACHELINE_BYTES: size of a cache line
0012    BOOST_LOCKFREE_PTR_COMPRESSION: use tag/pointer compression to utilize parts
0013                                    of the virtual address space as tag (at least 16bit)
0014 */
0015 
0016 #if defined(__s390__) || defined(__s390x__)
0017     #define BOOST_LOCKFREE_CACHELINE_BYTES 256
0018 #elif defined(powerpc) || defined(__powerpc__) || defined(__ppc__)
0019     #define BOOST_LOCKFREE_CACHELINE_BYTES 128
0020 #else
0021     #define BOOST_LOCKFREE_CACHELINE_BYTES 64
0022 #endif
0023 
0024 #include <boost/predef.h>
0025 
0026 #if BOOST_ARCH_X86_64 || ( (BOOST_ARCH_ARM >= BOOST_VERSION_NUMBER(8,0,0)) && !BOOST_PLAT_ANDROID )
0027 #define BOOST_LOCKFREE_PTR_COMPRESSION 1
0028 #endif
0029 
0030 #endif /* BOOST_LOCKFREE_PREFIX_HPP_INCLUDED */