8#ifndef BOTAN_ROUNDING_H_
9#define BOTAN_ROUNDING_H_
11#include <botan/types.h>
21inline size_t round_up(
size_t n,
size_t align_to)
26 n += align_to - (n % align_to);
39 return (align_to == 0) ? n : (n - (n % align_to));
#define BOTAN_ARG_CHECK(expr, msg)
constexpr T round_down(T n, T align_to)
size_t round_up(size_t n, size_t align_to)