Add fixed point subtraction
This commit is contained in:
parent
b7776ef379
commit
023cdad8fa
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user