Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
yzong
parabix-devel
Commits
90096ae3
Commit
90096ae3
authored
5 years ago
by
Rob Cameron
Browse files
Options
Download
Plain Diff
Merge branch 'master' into coordinate-triples
parents
d64b3490
e76a3c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
icgrep/kernels/scanmatchgen.cpp
icgrep/kernels/scanmatchgen.cpp
+5
-1
No files found.
icgrep/kernels/scanmatchgen.cpp
View file @
90096ae3
...
...
@@ -241,7 +241,11 @@ struct ScanWordParameters {
Constant
*
WORDS_PER_STRIDE
;
ScanWordParameters
(
const
std
::
unique_ptr
<
KernelBuilder
>
&
b
,
unsigned
stride
)
:
#ifdef PREFER_NARROW_SCANWIDTH
width
(
std
::
max
(
BITS_PER_BYTE
,
stride
/
SIZE_T_BITS
)),
#else
width
(
std
::
min
(
SIZE_T_BITS
,
stride
/
BITS_PER_BYTE
)),
#endif
indexWidth
(
stride
/
width
),
Ty
(
b
->
getIntNTy
(
width
)),
pointerTy
(
Ty
->
getPointerTo
()),
...
...
@@ -250,7 +254,7 @@ struct ScanWordParameters {
WORDS_PER_BLOCK
(
b
->
getSize
(
b
->
getBitBlockWidth
()
/
width
)),
WORDS_PER_STRIDE
(
b
->
getSize
(
indexWidth
))
{
// The stride must be a power of 2 and a multiple of the BitBlock width.
assert
((((
stride
&
(
stride
-
1
))
==
0
)
&&
(
stride
>=
b
->
getBitBlockWidth
())));
assert
((((
stride
&
(
stride
-
1
))
==
0
)
&&
(
stride
>=
b
->
getBitBlockWidth
())
&&
(
stride
<=
SIZE_T_BITS
*
SIZE_T_BITS
)
));
}
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment