summaryrefslogtreecommitdiff
path: root/src/fixed_point.cpp
blob: 7ff77a00e7fc5579f75da1e0e335de80c8cc2610 (plain)
1
2
3
4
5
6
7
8
9
#include "fixed_point.h"

fp_t fp_t::operator+(const fp_t& other) const {
    return {(int32_t)((uint32_t)raw + (uint32_t)other.raw)};
}

bool fp_t::operator==(const fp_t& other) const {
    return raw == other.raw;
}