From d14f330e0708a0045459912e19474b0f48746a61 Mon Sep 17 00:00:00 2001 From: tqcq Date: Sat, 26 Oct 2024 10:22:39 +0000 Subject: [PATCH] feat: update --- drama/src/rev-mc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drama/src/rev-mc.c b/drama/src/rev-mc.c index 46b9bab..dd462de 100644 --- a/drama/src/rev-mc.c +++ b/drama/src/rev-mc.c @@ -363,6 +363,9 @@ find_row_mask(std::vector &sets, cnt.load(std::memory_order_relaxed), step_count, g_cur_pos.load()); } } + + if (found) { break; } + step_count -= std::min(step_count, step); if (my_pos > g_base_pos.load(std::memory_order_relaxed)) {