Searched defs:int (Results 1 - 1 of 1) sorted by relevance

/inkscape/src/util/
H A Dfixed_point.h24 template <typename T, unsigned int precision>
33 FixedPoint(int value) : v(static_cast<T>(value)<<precision) {}
34 FixedPoint(unsigned int value) : v(static_cast<T>(value)<<precision) {}
40 const unsigned int half_size = 8*sizeof(T)/2;
43 v = static_cast<unsigned int>(al*bl)>>precision;
57 FixedPoint& operator*=(int val) { v *= val; return *this; }
58 FixedPoint& operator*=(unsigned int val) { v *= val; return *this; }
68 FixedPoint operator*(int val) const { FixedPoint r(*this); return r*=val; }
69 FixedPoint operator*(unsigned int val) const { FixedPoint r(*this); return r*=val; }
78 operator int() cons
[all...]

Completed in 16 milliseconds