Lines Matching refs:T
36 template <typename T>
37 int floor(T x);
39 template <typename T>
40 int round(T x);
42 template <typename T>
43 const T & min(const T & a, const T & b);
45 template <typename T>
46 const T & max(const T & a, const T & b);
48 template <typename T>
49 const T & bound(const T & min, const T & x, const T & max);
51 template <typename T>
52 T abs(const T & x);
57 template <typename T>
58 inline int floor(const T x) { in floor()
62 template <typename T>
63 inline int round(const T x) { 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()
71 template <typename T>
72 inline const T & min(const T & a, const T & b) { in min()
76 template <typename T>
77 inline const T & max(const T & a, const T & b) { in max()
81 template <typename T>
82 inline const T & bound(const T & min, const T & x, const T & max) { in bound()
86 template <typename T>
87 inline T abs(const T & x) { in abs()