From 45bec8812c9d5aa1065cf36a8ca878fda5a6b325 Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Wed, 19 Aug 2026 20:38:28 +0900 Subject: Added SimState --- include/fixed_point.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/fixed_point.h') diff --git a/include/fixed_point.h b/include/fixed_point.h index 385ccc2..2a9ec8d 100644 --- a/include/fixed_point.h +++ b/include/fixed_point.h @@ -3,6 +3,7 @@ #include #include +#include struct fp_t { static constexpr std::int32_t Q = 16; @@ -16,7 +17,7 @@ struct fp_t { fp_t operator-(const fp_t& other) const; fp_t operator*(const fp_t& other) const; fp_t operator/(const fp_t& other) const; - bool operator==(const fp_t& other) const; + auto operator<=>(const fp_t&) const = default; }; static_assert(std::is_trivially_copyable_v, "fp_t must remain trivially copyable for rollback determinism"); -- cgit v1.3