Add fixed point subtraction

This commit is contained in:
Madeline Busig 2024-07-29 22:47:37 -06:00
parent 9561686585
commit 64763adf47

View File

@ -107,6 +107,12 @@ public:
ARM_MODE constexpr fixed operator+(fixed rhs) const {
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