MulDiv.h#

Fully qualified name: carb/math/MulDiv.h

In directory: carb/math

Source file: MulDiv.h

Math utility for doing a large multiply-divide operation.

Namespaces#

carb

The main Carbonite namespace.

carb::math

Namespace for various math helper functions.

Structs#

carb::math::round_away_from_zero_t

A rounding policy for mulDiv that rounds the result away from zero.

carb::math::round_nearest_neighbor_t

A rounding policy for mulDiv that rounds the result to the nearest neighbor.

carb::math::round_toward_zero_t

A rounding policy for mulDiv that rounds the result toward zero, the default behavior for integer division.