Add fixed point subtraction

This commit is contained in:
Myles Busig 2024-07-29 22:47:37 -06:00
parent b7776ef379
commit 023cdad8fa

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