Searched defs:rounded_arith_opp (Results 1 – 1 of 1) sorted by relevance
79 struct rounded_arith_opp: Rounding { struct80 void init() { this->upward(); } in init()93 template<class U> T conv_down(U const &v) { BOOST_UP_NEG(-v); } in conv_down()94 template<class U> T conv_up (U const &v) { BOOST_UP(v); } in conv_up()95 T add_down(const T& x, const T& y) { BOOST_UP_NEG((-x) - y); } in add_down()96 T sub_down(const T& x, const T& y) { BOOST_UP_NEG(y - x); } in sub_down()97 T mul_down(const T& x, const T& y) { BOOST_UP_NEG(x * (-y)); } in mul_down()98 T div_down(const T& x, const T& y) { BOOST_UP_NEG(x / (-y)); } in div_down()99 T add_up (const T& x, const T& y) { BOOST_UP(x + y); } in add_up()100 T sub_up (const T& x, const T& y) { BOOST_UP(x - y); } in sub_up()[all …]