Add fixed point subtraction
This commit is contained in:
parent
9561686585
commit
64763adf47
@ -107,6 +107,12 @@ public:
|
|||||||
ARM_MODE constexpr fixed operator+(fixed rhs) const {
|
ARM_MODE constexpr fixed operator+(fixed rhs) const {
|
||||||
return from_raw(x + rhs.x);
|
return from_raw(x + rhs.x);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* \brief Fixed point subtraction
|
||||||
|
*/
|
||||||
|
ARM_MODE constexpr fixed operator-(fixed rhs) const {
|
||||||
|
return from_raw(x - rhs.x);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Fixed point multiplication
|
* \brief Fixed point multiplication
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user