summaryrefslogtreecommitdiffhomepage
path: root/src/timer-ns.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-02 13:08:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-02 13:08:10 +0100
commit1dd58007179b4b18e1dfced6363912845919b846 (patch)
treed4ad5bf12963693ea75c3bfeb9c9764989603e6a /src/timer-ns.cpp
parenta6481a7065852cb01846a5dc8a92fd415ba745fb (diff)
a?
Diffstat (limited to 'src/timer-ns.cpp')
-rw-r--r--src/timer-ns.cpp23
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;