Searched defs:rounding_control (Results 1 – 10 of 10) sorted by relevance
50 struct rounding_control<float>: struct53 static float force_rounding(const float r) in force_rounding()55 static float to_int(const float& x) { return rintf(x); } in to_int()59 struct rounding_control<double>: struct62 static const double & force_rounding(const double& r) { return r; } in force_rounding()63 static double to_int(const double& r) { return rint(r); } in to_int()67 struct rounding_control<long double>: struct70 static const long double & force_rounding(const long double& r) { return r; } in force_rounding()71 static long double to_int(const long double& r) { return rintl(r); } in to_int()
21 struct rounding_control<float>: struct24 static float force_rounding(float const &r) in force_rounding()29 struct rounding_control<double>: struct32 static double force_rounding(double const &r) in force_rounding()37 struct rounding_control<long double>: struct40 static long double force_rounding(long double const &r) in force_rounding()
82 struct rounding_control<float>: struct85 static float force_rounding(const float r) in force_rounding()87 static float to_int(const float& x) { return rintf(x); } in to_int()91 struct rounding_control<double>: struct94 static const double & force_rounding(const double& r) { return r; } in force_rounding()95 static double to_int(const double& r) { return rint(r); } in to_int()99 struct rounding_control<long double>: struct102 static const long double & force_rounding(const long double& r) { return r; } in force_rounding()103 static long double to_int(const long double& r) { return rintl(r); } in to_int()
83 struct rounding_control<float>: struct86 static const float& force_rounding(const float& x) { return x; } in force_rounding()87 static float to_int(const float& x) { return rintf(x); } in to_int()91 struct rounding_control<double>: struct94 static const double& force_rounding(const double& x) { return x; } in force_rounding()95 static double to_int(const double& x) { return rint(x); } in to_int()99 struct rounding_control<long double>: struct102 static const long double& force_rounding(const long double& x) { return x; } in force_rounding()103 static long double to_int(const long double& x) { return rint(x); } in to_int()
64 struct rounding_control<float>: struct67 static float force_rounding(const float r) in force_rounding()73 static float to_int(const float& x) { return rintf(x); } in to_int()77 struct rounding_control<double>: struct80 static const double & force_rounding(const double& r) { return r; } in force_rounding()81 static double to_int(const double& r) { return rint(r); } in to_int()85 struct rounding_control<long double>: struct88 static const long double & force_rounding(const long double& r) { return r; } in force_rounding()89 static long double to_int(const long double& r) { return rint(r); } in to_int()
61 struct rounding_control<float>: detail::x86_rounding_control struct63 static float force_rounding(const float& r) in force_rounding()68 struct rounding_control<double>: detail::x86_rounding_control struct72 static double force_rounding(const double& r) in force_rounding()98 struct rounding_control<long double>: struct
22 struct rounding_control struct24 typedef int rounding_mode;25 static void get_rounding_mode(rounding_mode&) {} in get_rounding_mode()26 static void set_rounding_mode(rounding_mode) {} in set_rounding_mode()27 static void upward() {} in upward()28 static void downward() {} in downward()29 static void to_nearest() {} in to_nearest()30 static const T& to_int(const T& x) { return x; } in to_int()31 static const T& force_rounding(const T& x) { return x; } in force_rounding()
108 struct rounding_control<pexpr> { struct109 typedef enum { RND_U, RND_M, RND_D } rounding_mode;110 static rounding_mode mode;111 rounding_control() { mode = RND_M; } in rounding_control() argument112 void get_rounding_mode(rounding_mode& m) { m = mode; } in get_rounding_mode()113 void set_rounding_mode(rounding_mode m) { mode = m; } in set_rounding_mode()114 void upward() { mode = RND_U; } in upward()115 void downward() { mode = RND_D; } in downward()116 pexpr force_rounding(pexpr a) { in force_rounding()
76 uint8_t rounding_control; // 56 member
230 uint8_t rounding_control; member