LCOV - code coverage report
Current view: top level - libs/http_proto/src/detail - align_up.hpp (source / functions) Hit Total Coverage
Test: coverage_filtered.info Lines: 2 2 100.0 %
Date: 2024-03-22 16:56:24 Functions: 1 1 100.0 %

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

Generated by: LCOV version 1.15