Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion libcds/src/static/suffixtree/RMQ_succinct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ namespace cds_static{
return c;
}

const DTsucc RMQ_succinct::HighestBitsSet[8] = {~0, ~1, ~3, ~7, ~15, ~31, ~63, ~127};
const DTsucc RMQ_succinct::HighestBitsSet[8] = {
DTsucc(~0), DTsucc(~1), DTsucc(~3), DTsucc(~7),
DTsucc(~15), DTsucc(~31), DTsucc(~63), DTsucc(~127)
};

DTsucc RMQ_succinct::clearbits(DTsucc n, unsigned int x) {
return n & HighestBitsSet[x];
Expand Down
5 changes: 4 additions & 1 deletion libcds/src/static/suffixtree/RMQ_succinct_lcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ namespace cds_static{
return c;
}

const DTsucc RMQ_succinct_lcp::HighestBitsSet[8] = {~0, ~1, ~3, ~7, ~15, ~31, ~63, ~127};
const DTsucc RMQ_succinct_lcp::HighestBitsSet[8] = {
DTsucc(~0), DTsucc(~1), DTsucc(~3), DTsucc(~7),
DTsucc(~15), DTsucc(~31), DTsucc(~63), DTsucc(~127)
};

DTsucc RMQ_succinct_lcp::clearbits(DTsucc n, uint x) {
return n & HighestBitsSet[x];
Expand Down