34namespace Gecode {
namespace Int {
36 template<
class IntType>
39 assert((
x >= 0) && (
y >= 0));
45 return ((
x %
y) == 0) ?
x/
y : (
x/
y + 1);
47 template<
class IntType>
50 assert((
x >= 0) && (
y >= 0));
54 template<
class IntType>
60 template<
class IntType>
67 template<
class IntType>
73 template<
class IntType>
80 template<
class IntType>
85 template<
class IntType>
IntType ceil_div_pp(IntType x, IntType y)
Compute where x and y are non-negative.
IntType ceil_div_xp(IntType x, IntType y)
Compute where y is non-negative.
IntType floor_div_xp(IntType x, IntType y)
Compute where y is non-negative.
IntType floor_div_xx(IntType x, IntType y)
Compute .
IntType ceil_div_px(IntType x, IntType y)
Compute where x is non-negative.
IntType floor_div_pp(IntType x, IntType y)
Compute where x and y are non-negative.
IntType ceil_div_xx(IntType x, IntType y)
Compute .
IntType floor_div_px(IntType x, IntType y)
Compute where x is non-negative.
IntType
Description of integer types.
Gecode toplevel namespace
Post propagator for SetVar SetOpType SetVar y
Post propagator for SetVar x