botan.utils.rounding

Integer Rounding Functions

Members

Functions

clamp
size_t clamp(size_t n, size_t lower_bound, size_t upper_bound)

Clamp

roundDown
T roundDown(T n, T align_to)

Round down

roundUp
T roundUp(T n, T align_to)

Round up

Meta

License

Botan is released under the Simplified BSD License (see LICENSE.md)