From 86e6b2a2a35f46550439262978d52bdeb93c6dc6 Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Sun, 9 Aug 2026 10:54:32 +0900 Subject: Initial commit, fixed point addition --- src/fixed_point.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/fixed_point.cpp (limited to 'src/fixed_point.cpp') diff --git a/src/fixed_point.cpp b/src/fixed_point.cpp new file mode 100644 index 0000000..3e67e77 --- /dev/null +++ b/src/fixed_point.cpp @@ -0,0 +1,9 @@ +#include "fixed_point.h" + +fp_t fp_t::operator+(const fp_t& other) const { + return {raw + other.raw}; +} + +bool fp_t::operator==(const fp_t& other) const { + return raw == other.raw; +} -- cgit v1.3