From 9d4f68606c919791d44e86e7a50812c29be32fa3 Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Sun, 9 Aug 2026 12:00:27 +0900 Subject: Add fp_t subtraction --- include/fixed_point.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; }; -- cgit v1.3