1
0

fix: fix kernel lut build issue

This commit is contained in:
2026-06-29 20:10:23 +08:00
parent 4af8dd97a2
commit bbd47006d4
4 changed files with 162 additions and 77 deletions

View File

@@ -121,13 +121,9 @@ class LutResolver(Resolver):
diff = ccalc.unsigned_difference(item.circuit, value=item.value)
# Since the LUT is sorted, values on each side only move further
# from target as we advance. Once one side exceeds tolerance,
# the rest of that side is guaranteed out of range — disable it.
# the rest of that side is guaranteed out of range.
if diff > request.tolerance:
if go_left:
left = -1
else:
right = len(lut)
continue
break
bucket.append(item.circuit)