diff --git a/include/mtl/fixed.hpp b/include/mtl/fixed.hpp index f4b708d..8ec057f 100644 --- a/include/mtl/fixed.hpp +++ b/include/mtl/fixed.hpp @@ -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