Skip to content

Commit 28ae2f4

Browse files
committed
fix BitSliceAccelerator constructor for central problem
1 parent 946d219 commit 28ae2f4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ out/
2424
/tests_extractor.d
2525
build/
2626
files
27+
mir-algorithm.lib

source/mir/algorithm/iteration.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ private struct BitSliceAccelerator(Field, I = typeof(Field.init[size_t.init]))
105105
// central problem
106106
headLength = -cast(int) length;
107107
tailLength = cast(int) hlen;
108+
goto F;
108109
}
109110
else
110111
{
@@ -114,6 +115,7 @@ private struct BitSliceAccelerator(Field, I = typeof(Field.init[size_t.init]))
114115
}
115116
}
116117
tailLength = cast(int) (length & mask);
118+
F:
117119
length >>= shift;
118120
index >>= shift;
119121
bodyChunks._lengths[0] = length;

0 commit comments

Comments
 (0)