diff options
| author | batsumaru <> | 2026-08-09 12:00:27 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-08-09 12:00:27 +0900 |
| commit | 9d4f68606c919791d44e86e7a50812c29be32fa3 (patch) | |
| tree | 7228c33d006f994f5b45f6634af40d4c08bf6c7c /include | |
| parent | 5a0e17e6a406805e830fc78b681656d0c7e88748 (diff) | |
Add fp_t subtraction
Diffstat (limited to 'include')
| -rw-r--r-- | include/fixed_point.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fixed_point.h b/include/fixed_point.h index 254bc91..1bdc5df 100644 --- a/include/fixed_point.h +++ b/include/fixed_point.h @@ -11,6 +11,7 @@ struct fp_t { static constexpr fp_t from_int(std::int32_t i) { return fp_t{i << 16}; } fp_t operator+(const fp_t& other) const; + fp_t operator-(const fp_t& other) const; bool operator==(const fp_t& other) const; }; |
