33 #ifndef _CYMEALG_DUMMYRND_H_ 34 #define _CYMEALG_DUMMYRND_H_ 44 template <
class numType>
49 static inline numType
add_down (
const numType &x,
const numType &y)
53 static inline numType
add_up (
const numType &x,
const numType &y)
57 static inline numType
sub_down (
const numType &x,
const numType &y)
61 static inline numType
sub_up (
const numType &x,
const numType &y)
65 static inline numType
mul_down (
const numType &x,
const numType &y)
69 static inline numType
mul_up (
const numType &x,
const numType &y)
73 static inline numType
div_down (
const numType &x,
const numType &y)
77 static inline numType
div_down (
const numType &x, int_t y)
81 static inline numType
div_up (
const numType &x,
const numType &y)
90 #endif // _CYMEALG_DUMMYRND_H_ static numType sub_down(const numType &x, const numType &y)
Subtracts two numbers with the result rounded downwards.
static numType div_down(const numType &x, int_t y)
Divides a number by an integer with the result rounded downwards.
static numType sub_up(const numType &x, const numType &y)
Subtracts two numbers with the result rounded upwards.
static numType div_down(const numType &x, const numType &y)
Divides two numbers with the result rounded downwards.
static numType add_up(const numType &x, const numType &y)
Adds two numbers with the result rounded upwards.
A dummy class for rounding operations which does not actually do any rounding.
static numType mul_down(const numType &x, const numType &y)
Multiplies two numbers with the result rounded downwards.
static numType mul_up(const numType &x, const numType &y)
Multiplies two numbers with the result rounded upwards.
static numType add_down(const numType &x, const numType &y)
Adds two numbers with the result rounded downwards.
static numType div_up(const numType &x, const numType &y)
Divides two numbers with the result rounded upwards.