Lines Matching refs:x
37 int floor(T x);
40 int round(T x);
49 const T & bound(const T & min, const T & x, const T & max);
52 T abs(const T & x);
58 inline int floor(const T x) { in floor() argument
59 return static_cast<int>(x); in floor()
63 inline int round(const T x) { in round() argument
64 if ( x >= 0 ) { in round()
65 return floor(x + T(0.5)); in round()
67 return floor(x - floor(x - T(1)) + T(0.5)) + floor(x - T(1)); in round()
82 inline const T & bound(const T & min, const T & x, const T & max) { in bound() argument
83 return x < min ? min : x > max ? max : x; in bound()
87 inline T abs(const T & x) { in abs() argument
88 return x >= 0 ? x : -x; in abs()