fix: fix kernel lut build issue

This commit is contained in:
yyc12345 committed 2026-06-29 20:10:23 +08:00
1 parent 4af8dd97a2
commit bbd47006d4
4 files changed
+162 -77

No files matched your search

+2 -6
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)