]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/align/include/boost/align/is_aligned.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / align / include / boost / align / is_aligned.hpp
CommitLineData
7c673cae
FG
1/*
2(c) 2014 Glen Joseph Fernandes
3<glenjofe -at- gmail.com>
4
5Distributed under the Boost Software
6License, Version 1.0.
7http://boost.org/LICENSE_1_0.txt
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#include <boost/align/is_aligned_forward.hpp>
14
15namespace boost {
16namespace alignment {
17
18BOOST_CONSTEXPR inline bool is_aligned(std::size_t value,
19 std::size_t alignment) BOOST_NOEXCEPT
20{
21 return (value & (alignment - 1)) == 0;
22}
23
24} /* .alignment */
25} /* .boost */
26
27#endif