diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-02 13:08:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-02 13:08:10 +0100 |
commit | 1dd58007179b4b18e1dfced6363912845919b846 (patch) | |
tree | d4ad5bf12963693ea75c3bfeb9c9764989603e6a /src/timer-ns.cpp | |
parent | a6481a7065852cb01846a5dc8a92fd415ba745fb (diff) |
a?
Diffstat (limited to 'src/timer-ns.cpp')
-rw-r--r-- | src/timer-ns.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/timer-ns.cpp b/src/timer-ns.cpp index 45d0411c..6a24f3c9 100644 --- a/src/timer-ns.cpp +++ b/src/timer-ns.cpp @@ -41,29 +41,6 @@ Ns operator-(const Ns& lhs, const Ns& rhs) return Ns{a - b}; } -Ns operator*(const Ns& lhs, uint64_t b) -{ - auto a = lhs.stamp; - auto x = a * b; - //fm_assert(!(a != 0 && x / a != b)); - fm_assert(a == 0 || x / a == b); - return Ns{x}; -} - -Ns operator*(uint64_t a, const Ns& rhs) -{ - auto b = rhs.stamp; - return Ns{a} * b; -} - -Ns operator*(const Ns& lhs, float b_) -{ - long double a(lhs.stamp), b(b_); - auto x = a * b; - fm_assert(x <= 1 << 24 && x >= 0); - return Ns{uint64_t(x)}; -} - uint64_t operator/(const Ns& lhs, const Ns& rhs) { auto a = lhs.stamp, b = rhs.stamp; |