diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-06 01:05:39 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-06 01:05:39 +0100 |
commit | 1c0351986e0e70040a65733fb2bdd6d0781d1135 (patch) | |
tree | 5669037086696c4c0f356295d5b4dee3416b4f84 /test | |
parent | 85d11eca681e61767edfdacd84a4e845f6b96cec (diff) |
more [[unlikely]] abuse
Diffstat (limited to 'test')
-rw-r--r-- | test/critter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/critter.cpp b/test/critter.cpp index af8eb0b6..0e66f186 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -160,12 +160,12 @@ bool run(world& w, const function_view<Ns() const>& make_dt, time += dt; - if (same_pos) [[unlikely]] + if (same_pos) { frames_stopped++; if (frames_stopped == 0) saved_time = time; - if (frames_stopped >= max_stop_frames) [[unlikely]] + else if (frames_stopped >= max_stop_frames) [[unlikely]] { if (!start.quiet) [[unlikely]] { @@ -209,7 +209,7 @@ bool run(world& w, const function_view<Ns() const>& make_dt, else if (start.verbose) [[unlikely]] Debug{} << "*" << "distance:" << dist_l2 << "pixels"; - if (expected.time != Ns{}) + if (expected.time != Ns{}) [[likely]] { const auto time_diff = Ns{Math::abs((int64_t)expected.time.stamp - (int64_t)saved_time.stamp)}; if (time_diff > grace.time) |