]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/align/align_up.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / align / align_up.hpp
1 /*
2 Copyright 2015 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 #ifndef BOOST_ALIGN_ALIGN_UP_HPP
9 #define BOOST_ALIGN_ALIGN_UP_HPP
10
11 #include <boost/align/detail/align_up.hpp>
12
13 namespace boost {
14 namespace alignment {
15
16 BOOST_CONSTEXPR inline std::size_t
17 align_up(std::size_t value, std::size_t alignment) BOOST_NOEXCEPT
18 {
19 return (value + alignment - 1) & ~(alignment - 1);
20 }
21
22 } /* alignment */
23 } /* boost */
24
25 #endif