introduce bitloops

This commit is contained in:
mike
2026-01-19 19:11:31 +01:00
parent 1fa112ab65
commit 5d186ae0ba
4 changed files with 56 additions and 89 deletions

View File

@@ -332,7 +332,6 @@ public record Export() {
for (long w = lemma & Lemma.LETTER_MASK; w != 0; w >>>= 5, i++) {
pos[i][(int) ((w & 31) - 1)].add(idx);
}
// for (i = 0; i < L; i++) entry.pos()[i][Lemma.byteAt(lemma, i) - 1].add(idx);
}
for (int i = 2; i < index.length; i++) if (index[i].words().size() <= 0) throw new RuntimeException("No words for length " + i);
return new Dict(Arrays.stream(index).map(i -> {