Chris@102: /* Chris@102: (c) 2014 Glen Joseph Fernandes Chris@102: glenjofe at gmail dot com Chris@102: Chris@102: Distributed under the Boost Software Chris@102: License, Version 1.0. Chris@102: http://boost.org/LICENSE_1_0.txt Chris@102: */ Chris@102: #ifndef BOOST_ALIGN_DETAIL_IS_ALIGNMENT_HPP Chris@102: #define BOOST_ALIGN_DETAIL_IS_ALIGNMENT_HPP Chris@102: Chris@102: #include Chris@102: #include Chris@102: Chris@102: namespace boost { Chris@102: namespace alignment { Chris@102: namespace detail { Chris@102: BOOST_CONSTEXPR inline bool is_alignment(std::size_t Chris@102: value) BOOST_NOEXCEPT Chris@102: { Chris@102: return (value > 0) && ((value & (value - 1)) == 0); Chris@102: } Chris@102: } Chris@102: } Chris@102: } Chris@102: Chris@102: #endif