diff options
Diffstat (limited to 'src/fixed_point.cpp')
| -rw-r--r-- | src/fixed_point.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fixed_point.cpp b/src/fixed_point.cpp index 7ff77a0..9b2d8e2 100644 --- a/src/fixed_point.cpp +++ b/src/fixed_point.cpp @@ -4,6 +4,10 @@ fp_t fp_t::operator+(const fp_t& other) const { return {(int32_t)((uint32_t)raw + (uint32_t)other.raw)}; } +fp_t fp_t::operator-(const fp_t& other) const { + return {(int32_t)((uint32_t)raw - (uint32_t)other.raw)}; +} + bool fp_t::operator==(const fp_t& other) const { return raw == other.raw; } |
