1 // Copyright (C) 2009, 2016 Tim Blechmann
3 // Distributed under the Boost Software License, Version 1.0. (See
4 // accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_LOCKFREE_PREFIX_HPP_INCLUDED
8 #define BOOST_LOCKFREE_PREFIX_HPP_INCLUDED
10 /* this file defines the following macros:
11 BOOST_LOCKFREE_CACHELINE_BYTES: size of a cache line
12 BOOST_LOCKFREE_PTR_COMPRESSION: use tag/pointer compression to utilize parts
13 of the virtual address space as tag (at least 16bit)
16 #define BOOST_LOCKFREE_CACHELINE_BYTES 64
18 #include <boost/predef.h>
20 #ifdef BOOST_ARCH_X86_64
21 #define BOOST_LOCKFREE_PTR_COMPRESSION 1
24 #endif /* BOOST_LOCKFREE_PREFIX_HPP_INCLUDED */