Searched defs:rounded_arith_exact (Results 1 – 1 of 1) sorted by relevance
27 struct rounded_arith_exact: Rounding { struct28 void init() { } in init()29 template<class U> T conv_down(U const &v) { return v; } in conv_down()30 template<class U> T conv_up (U const &v) { return v; } in conv_up()31 T add_down (const T& x, const T& y) { return x + y; } in add_down()32 T add_up (const T& x, const T& y) { return x + y; } in add_up()33 T sub_down (const T& x, const T& y) { return x - y; } in sub_down()34 T sub_up (const T& x, const T& y) { return x - y; } in sub_up()35 T mul_down (const T& x, const T& y) { return x * y; } in mul_down()36 T mul_up (const T& x, const T& y) { return x * y; } in mul_up()[all …]