GCC Code Coverage Report


Directory: libs/http_proto/
File: boost/http_proto/detail/align_up.hpp
Date: 2024-04-15 15:38:04
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

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 5841 align_up(std::size_t s, std::size_t A)
23 {
24 return A * (
25 5841 (s + A - 1) / A);
26 }
27
28 } // detail
29 } // http_proto
30 } // boost
31
32 #endif
33