2020-09-01 16:00:33 +02:00
<!-- HTML header for doxygen 1.8.18 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2022-01-17 21:42:14 +01:00
< meta name = "generator" content = "Doxygen 1.9.3" / >
2020-09-01 16:00:33 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > OR-Tools: bitset.cc File Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "styleSheet.tmp.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectlogo" > < img alt = "Logo" src = "orLogo.png" / > < / td >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > OR-Tools
2022-03-04 00:11:33 +01:00
  < span id = "projectnumber" > 9.3< / span >
2020-09-01 16:00:33 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2022-01-17 21:42:14 +01:00
<!-- Generated by Doxygen 1.9.3 -->
2020-09-01 16:00:33 +02:00
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-17 21:42:14 +01:00
/* @license-end */
< / script >
2020-09-01 16:00:33 +02:00
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('bitset_8cc.html',''); initResizable(); });
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#define-members" > Macros< / a > |
< a href = "#func-members" > Functions< / a > < / div >
2022-01-17 21:42:14 +01:00
< div class = "headertitle" > < div class = "title" > bitset.cc File Reference< / div > < / div >
2020-09-01 16:00:33 +02:00
< / div > <!-- header -->
< div class = "contents" >
< p > < a href = "bitset_8cc_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "namespaces" name = "namespaces" > < / a >
2020-09-01 16:00:33 +02:00
Namespaces< / h2 > < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:namespaceoperations__research" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / td > < / tr >
2021-04-27 23:00:03 +02:00
< tr class = "memdesc:namespaceoperations__research" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Collection of objects used to extend the < a class = "el" href = "classoperations__research_1_1_constraint.html" title = "A constraint is the main modeling object." > Constraint< / a > < a class = "el" href = "classoperations__research_1_1_solver.html" title = "Solver Class." > Solver< / a > library. < br / > < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "define-members" name = "define-members" > < / a >
2020-09-01 16:00:33 +02:00
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:a8a1613218821bcc0746e658018b22e14" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#a8a1613218821bcc0746e658018b22e14" > BIT_COUNT_RANGE< / a > (size, zero)< / td > < / tr >
< tr class = "separator:a8a1613218821bcc0746e658018b22e14" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6d1d9d8e8f51f8c5c9c196cee565c99a" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#a6d1d9d8e8f51f8c5c9c196cee565c99a" > IS_EMPTY_RANGE< / a > (size)< / td > < / tr >
< tr class = "separator:a6d1d9d8e8f51f8c5c9c196cee565c99a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0e35598507f1cefefed70d6b330e5564" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#a0e35598507f1cefefed70d6b330e5564" > LEAST_SIGNIFCANT_BIT_POSITION< / a > (size)< / td > < / tr >
< tr class = "separator:a0e35598507f1cefefed70d6b330e5564" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6c95af60e681e064db683d517de7c3c8" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#a6c95af60e681e064db683d517de7c3c8" > MOST_SIGNIFICANT_BIT_POSITION< / a > (size)< / td > < / tr >
< tr class = "separator:a6c95af60e681e064db683d517de7c3c8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab483ccbdddfcad95eef8087de59791db" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#ab483ccbdddfcad95eef8087de59791db" > UNSAFE_LEAST_SIGNIFICANT_BIT_POSITION< / a > (size)< / td > < / tr >
< tr class = "separator:ab483ccbdddfcad95eef8087de59791db" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1e8883f9118f3bc5cc8e7a892aa08215" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#a1e8883f9118f3bc5cc8e7a892aa08215" > UNSAFE_MOST_SIGNIFICANT_BIT_POSITION< / a > (size)< / td > < / tr >
< tr class = "separator:a1e8883f9118f3bc5cc8e7a892aa08215" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
2020-09-01 16:00:33 +02:00
Functions< / h2 > < / td > < / tr >
2020-11-18 14:53:30 +01:00
< tr class = "memitem:a95564ffe5aa637e68370ebd4ede9e98b" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "bitset_8cc.html#a95564ffe5aa637e68370ebd4ede9e98b" > ABSL_FLAG< / a > (int, bitset_small_bitset_count, 8, " threshold to count bits with buckets" )< / td > < / tr >
< tr class = "separator:a95564ffe5aa637e68370ebd4ede9e98b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-09-01 16:00:33 +02:00
< / table >
< h2 class = "groupheader" > Macro Definition Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "a8a1613218821bcc0746e658018b22e14" name = "a8a1613218821bcc0746e658018b22e14" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8a1613218821bcc0746e658018b22e14" > ◆ < / a > < / span > BIT_COUNT_RANGE< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define BIT_COUNT_RANGE< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > size, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > zero  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2022-01-17 21:42:14 +01:00
< b > Value:< / b > < div class = "fragment" > < div class = "line" > uint##size##_t BitCountRange##size(< span class = "keyword" > const< / span > uint##size##_t* < span class = "keyword" > const< / span > bits, \< / div >
< div class = "line" > uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > , \< / div >
< div class = "line" > uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ) { \< / div >
< div class = "line" > if (< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > - < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > > absl::GetFlag(FLAGS_bitset_small_bitset_count)) { \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_start = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > pos_start = BitPos##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_end = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > pos_end = BitPos##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > if (offset_end == offset_start) { \< / div >
< div class = "line" > return BitCount##size(bits[offset_start] & \< / div >
< div class = "line" > OneRange##size(pos_start, pos_end)); \< / div >
< div class = "line" > } < span class = "keywordflow" > else< / span > { \< / div >
< div class = "line" > uint##size##_t bit_count = zero; \< / div >
< div class = "line" > bit_count += \< / div >
< div class = "line" > BitCount##size(bits[offset_start] & IntervalUp##size(pos_start)); \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > offset = offset_start + 1; offset < offset_end; ++offset) { \< / div >
< div class = "line" > bit_count += BitCount##size(bits[offset]); \< / div >
< div class = "line" > } \< / div >
< div class = "line" > bit_count += \< / div >
< div class = "line" > BitCount##size(bits[offset_end] & IntervalDown##size(pos_end)); \< / div >
< div class = "line" > return bit_count; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } < span class = "keywordflow" > else< / span > { \< / div >
< div class = "line" > uint##size##_t bit_count = zero; \< / div >
< div class = "line" > for (uint##size##_t i = < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ; i < = < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ; ++i) { \< / div >
< div class = "line" > bit_count += IsBitSet##size(bits, i); \< / div >
< div class = "line" > } \< / div >
< div class = "line" > return bit_count; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > }< / div >
< div class = "ttc" id = "asparse__submatrix_8cc_html_a4d53eac2ef2732c28fa9fb663e0c19a7" > < div class = "ttname" > < a href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > < / div > < div class = "ttdeci" > std::optional< int64_t > end< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "sparse__submatrix_8cc_source.html#l00036" > sparse_submatrix.cc:36< / a > < / div > < / div >
< div class = "ttc" id = "asparse__submatrix_8cc_html_a9b7656b922ea4ec96097d7380c0e61fe" > < div class = "ttname" > < a href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > < / div > < div class = "ttdeci" > int64_t start< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "sparse__submatrix_8cc_source.html#l00035" > sparse_submatrix.cc:35< / a > < / div > < / div >
< / div > <!-- fragment -->
2020-10-09 12:00:09 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "bitset_8cc_source.html#l00026" > 26< / a > of file < a class = "el" href = "bitset_8cc_source.html" > bitset.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a6d1d9d8e8f51f8c5c9c196cee565c99a" name = "a6d1d9d8e8f51f8c5c9c196cee565c99a" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6d1d9d8e8f51f8c5c9c196cee565c99a" > ◆ < / a > < / span > IS_EMPTY_RANGE< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define IS_EMPTY_RANGE< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > size< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2022-01-17 21:42:14 +01:00
< b > Value:< / b > < div class = "fragment" > < div class = "line" > < span class = "keywordtype" > bool< / span > IsEmptyRange##size(< span class = "keyword" > const< / span > uint##size##_t* < span class = "keyword" > const< / span > bits, \< / div >
< div class = "line" > uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > , uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ) { \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_start = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > pos_start = BitPos##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_end = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > pos_end = BitPos##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > if (offset_end == offset_start) { \< / div >
< div class = "line" > if (bits[offset_start] & OneRange##size(pos_start, pos_end)) { \< / div >
< div class = "line" > return < span class = "keyword" > false< / span > ; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } < span class = "keywordflow" > else< / span > { \< / div >
< div class = "line" > if (bits[offset_start] & IntervalUp##size(pos_start)) { \< / div >
< div class = "line" > return < span class = "keyword" > false< / span > ; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > offset = offset_start + 1; offset < offset_end; ++offset) { \< / div >
< div class = "line" > if (bits[offset]) { \< / div >
< div class = "line" > return < span class = "keyword" > false< / span > ; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } \< / div >
< div class = "line" > if (bits[offset_end] & IntervalDown##size(pos_end)) { \< / div >
< div class = "line" > return < span class = "keyword" > false< / span > ; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } \< / div >
< div class = "line" > return < span class = "keyword" > true< / span > ; \< / div >
< div class = "line" > }< / div >
< / div > <!-- fragment -->
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "bitset_8cc_source.html#l00063" > 63< / a > of file < a class = "el" href = "bitset_8cc_source.html" > bitset.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a0e35598507f1cefefed70d6b330e5564" name = "a0e35598507f1cefefed70d6b330e5564" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0e35598507f1cefefed70d6b330e5564" > ◆ < / a > < / span > LEAST_SIGNIFCANT_BIT_POSITION< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define LEAST_SIGNIFCANT_BIT_POSITION< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > size< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "bitset_8cc_source.html#l00095" > 95< / a > of file < a class = "el" href = "bitset_8cc_source.html" > bitset.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a6c95af60e681e064db683d517de7c3c8" name = "a6c95af60e681e064db683d517de7c3c8" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6c95af60e681e064db683d517de7c3c8" > ◆ < / a > < / span > MOST_SIGNIFICANT_BIT_POSITION< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define MOST_SIGNIFICANT_BIT_POSITION< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > size< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "bitset_8cc_source.html#l00146" > 146< / a > of file < a class = "el" href = "bitset_8cc_source.html" > bitset.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "ab483ccbdddfcad95eef8087de59791db" name = "ab483ccbdddfcad95eef8087de59791db" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab483ccbdddfcad95eef8087de59791db" > ◆ < / a > < / span > UNSAFE_LEAST_SIGNIFICANT_BIT_POSITION< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define UNSAFE_LEAST_SIGNIFICANT_BIT_POSITION< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > size< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2022-01-17 21:42:14 +01:00
< b > Value:< / b > < div class = "fragment" > < div class = "line" > < span class = "keywordtype" > int< / span > ##size##_t UnsafeLeastSignificantBitPosition##size( \< / div >
< div class = "line" > < span class = "keyword" > const< / span > uint##size##_t* < span class = "keyword" > const< / span > bits, uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > , \< / div >
< div class = "line" > uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ) { \< / div >
< div class = "line" > DCHECK_LE(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > , < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > DCHECK(IsBitSet##size(bits, < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > )); \< / div >
< div class = "line" > if (IsBitSet##size(bits, < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > )) { \< / div >
< div class = "line" > return < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_start = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_end = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > pos_start = BitPos##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const uint##size##_t start_mask = \< / div >
< div class = "line" > bits[offset_start] & IntervalUp##size(pos_start); \< / div >
< div class = "line" > if (start_mask) { \< / div >
< div class = "line" > return BitShift##size(offset_start) + \< / div >
< div class = "line" > LeastSignificantBitPosition##size(start_mask); \< / div >
< div class = "line" > } \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > offset = offset_start + 1; offset < = offset_end; ++offset) { \< / div >
< div class = "line" > if (bits[offset]) { \< / div >
< div class = "line" > return BitShift##size(offset) + \< / div >
< div class = "line" > LeastSignificantBitPosition##size(bits[offset]); \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } \< / div >
< div class = "line" > return -1; \< / div >
< div class = "line" > }< / div >
< / div > <!-- fragment -->
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "bitset_8cc_source.html#l00198" > 198< / a > of file < a class = "el" href = "bitset_8cc_source.html" > bitset.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a1e8883f9118f3bc5cc8e7a892aa08215" name = "a1e8883f9118f3bc5cc8e7a892aa08215" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a1e8883f9118f3bc5cc8e7a892aa08215" > ◆ < / a > < / span > UNSAFE_MOST_SIGNIFICANT_BIT_POSITION< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define UNSAFE_MOST_SIGNIFICANT_BIT_POSITION< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > size< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2022-01-17 21:42:14 +01:00
< b > Value:< / b > < div class = "fragment" > < div class = "line" > < span class = "keywordtype" > int< / span > ##size##_t UnsafeMostSignificantBitPosition##size( \< / div >
< div class = "line" > < span class = "keyword" > const< / span > uint##size##_t* < span class = "keyword" > const< / span > bits, uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > , \< / div >
< div class = "line" > uint##size##_t < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ) { \< / div >
< div class = "line" > DCHECK_GE(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > , < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > DCHECK(IsBitSet##size(bits, < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > )); \< / div >
< div class = "line" > if (IsBitSet##size(bits, < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > )) { \< / div >
< div class = "line" > return < a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_start = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a9b7656b922ea4ec96097d7380c0e61fe" > start< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > offset_end = BitOffset##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > pos_end = BitPos##size(< a class = "code hl_variable" href = "sparse__submatrix_8cc.html#a4d53eac2ef2732c28fa9fb663e0c19a7" > end< / a > ); \< / div >
< div class = "line" > const uint##size##_t end_mask = \< / div >
< div class = "line" > bits[offset_end] & IntervalDown##size(pos_end); \< / div >
< div class = "line" > if (end_mask) { \< / div >
< div class = "line" > return BitShift##size(offset_end) + \< / div >
< div class = "line" > MostSignificantBitPosition##size(end_mask); \< / div >
< div class = "line" > } \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > offset = offset_end - 1; offset > = offset_start; --offset) { \< / div >
< div class = "line" > if (bits[offset]) { \< / div >
< div class = "line" > return BitShift##size(offset) + \< / div >
< div class = "line" > MostSignificantBitPosition##size(bits[offset]); \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } \< / div >
< div class = "line" > return -1; \< / div >
< div class = "line" > }< / div >
< / div > <!-- fragment -->
2021-04-27 23:00:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "bitset_8cc_source.html#l00230" > 230< / a > of file < a class = "el" href = "bitset_8cc_source.html" > bitset.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
< h2 class = "groupheader" > Function Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "a95564ffe5aa637e68370ebd4ede9e98b" name = "a95564ffe5aa637e68370ebd4ede9e98b" > < / a >
2020-11-18 14:53:30 +01:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a95564ffe5aa637e68370ebd4ede9e98b" > ◆ < / a > < / span > ABSL_FLAG()< / h2 >
2020-09-01 16:00:33 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-11-18 14:53:30 +01:00
< td class = "memname" > ABSL_FLAG < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
2020-11-18 14:53:30 +01:00
< td class = "paramtype" > int  < / td >
< td class = "paramname" > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2020-09-01 16:00:33 +02:00
< td class = "paramtype" > bitset_small_bitset_count  < / td >
< td class = "paramname" > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > 8  < / td >
< td class = "paramname" > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > " threshold to count bits with buckets"   < / td >
< td class = "paramname" >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.18 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "dir_a7cc1eeded8f693d0da6c729bc88c45a.html" > ortools< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_a3328a0ea67a2aaa160c2783ffbaa5dc.html" > util< / a > < / li > < li class = "navelem" > < a class = "el" href = "bitset_8cc.html" > bitset.cc< / a > < / li >
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
2022-01-17 21:42:14 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.9.3 < / li >
2020-09-01 16:00:33 +02:00
< / ul >
< / div >
< / body >
< / html >