Function ceiling_of_quotient

Synopsis

#include "breeze/mathematics/ceiling_of_quotient.hpp"

template <typename Integer>
constexpr Integer ceiling_of_quotient(Integer a, Integer b)

Description

Returns the ceiling of the quotient of two integers.

Type requirements
Integer shall be an integral type or a cv-qualified version thereof.
Precondition
b != 0
Returns
The ceiling of the quotient between a and b.
Useful to answer questions such as: "How many octets do I need to store 20 bits?". Answer: ceiling_of_quotient( 20, 8 ) .

Source

Line 40 in breeze/mathematics/ceiling_of_quotient.hpp.