diff options
| author | batsumaru <> | 2026-08-09 10:54:32 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-08-09 10:54:32 +0900 |
| commit | 86e6b2a2a35f46550439262978d52bdeb93c6dc6 (patch) | |
| tree | 06324833942126ca5132ec595d8880c8a8a55eed /src | |
Initial commit, fixed point addition
Diffstat (limited to 'src')
| -rw-r--r-- | src/fixed_point.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; +} |
