Line |
Branch |
Exec |
Source |
1 |
|
|
// |
2 |
|
|
// Copyright (c) 2024 Christian Mazakas |
3 |
|
|
// |
4 |
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 |
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 |
|
|
// |
7 |
|
|
// Official repository: https://github.com/CPPAlliance/http_proto |
8 |
|
|
// |
9 |
|
|
|
10 |
|
|
#ifndef BOOST_HTTP_PROTO_DETAIL_ALIGN_UP_HPP |
11 |
|
|
#define BOOST_HTTP_PROTO_DETAIL_ALIGN_UP_HPP |
12 |
|
|
|
13 |
|
|
#include <cstddef> |
14 |
|
|
|
15 |
|
|
namespace boost { |
16 |
|
|
namespace http_proto { |
17 |
|
|
namespace detail { |
18 |
|
|
|
19 |
|
|
constexpr |
20 |
|
|
inline |
21 |
|
|
std::size_t |
22 |
|
6053 |
align_up(std::size_t s, std::size_t A) |
23 |
|
|
{ |
24 |
|
|
return A * ( |
25 |
|
6053 |
(s + A - 1) / A); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
} // detail |
29 |
|
|
} // http_proto |
30 |
|
|
} // boost |
31 |
|
|
|
32 |
|
|
#endif |
33 |
|
|
|