LCOV - code coverage report
Current view: top level - boost/http_proto/detail/align_up.hpp (source / functions) Coverage Total Hit
Test: coverage_filtered.info Lines: 100.0 % 2 2
Test Date: 2024-09-18 08:42:22 Functions: 100.0 % 1 1

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

Generated by: LCOV version 2.1