]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/align/is_aligned.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / align / is_aligned.hpp
1 /*
2 Copyright 2014 Glen Joseph Fernandes
3 (glenjofe@gmail.com)
4
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
7
8 */
9 #ifndef BOOST_ALIGN_IS_ALIGNED_HPP
10 #define BOOST_ALIGN_IS_ALIGNED_HPP
11
12 #include <boost/align/detail/is_aligned.hpp>
13
14 namespace boost {
15 namespace alignment {
16
17 BOOST_CONSTEXPR inline bool
18 is_aligned(std::size_t value, std::size_t alignment) BOOST_NOEXCEPT
19 {
20 return (value & (alignment - 1)) == 0;
21 }
22
23 } /* alignment */
24 } /* boost */
25
26 #endif