CARB_ROUNDUP#

Defined in carb/Defines.h

CARB_ROUNDUP(value, to)#

Rounds a given value to the next highest multiple of another given value.

Warning

This macro will evaluate the to parameter more than once! Consider using an inline function instead.

Parameters:
  • value – The value to round.

  • to – The multiple to round to.

Returns:

value rounded up to the next multiple of to.