Generated on Thu Jul 6 07:06:52 2006 for Gecode by doxygen 1.4.7

mult.icc File Reference

(Revision: 3246)

#include <cmath>

Go to the source code of this file.

Namespaces

namespace  Gecode
namespace  Gecode::Int
namespace  Gecode::Int::Arithmetic

Defines

#define GECODE_CM(TELL)
 Performs TELL operation and sets mod, if modified.

Functions

double Gecode::Int::Arithmetic::m (int a, int b)
 Multiply a and b as double.
int Gecode::Int::Arithmetic::f_d (int x, int y)
 Compute $\lfloor x/y\rfloor$.
int Gecode::Int::Arithmetic::c_d (int x, int y)
 Compute $\lceil x/y\rceil$.
template<class View>
bool Gecode::Int::Arithmetic::p (const View &x)
 Test whether x is postive.
template<class View>
bool Gecode::Int::Arithmetic::n (const View &x)
 Test whether x is negative.
template<class View>
bool Gecode::Int::Arithmetic::x (const View &x)
 Test whether x is neither positive nor negative.


Define Documentation

#define GECODE_CM ( TELL   ) 

Value:

{                                               \
  ModEvent me = (TELL);                         \
  if (me_failed(me))   return ES_FAILED;        \
  if (me_modified(me)) mod = true;              \
}
Performs TELL operation and sets mod, if modified.

Definition at line 72 of file mult.icc.