</pre></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID0EDCA");</script><h4class="subHeading">Parameters</h4><dl><dt><spanclass="parameter">op</span></dt><dd>Type:<ahref="8beda7fb-bbc4-b56f-fd1f-1459377ecb3b.htm">Math.Gmp.Native<spanid="LST86CCB201_1"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST86CCB201_1?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mpz_t</a><br/>The operand integer.</dd><dt><spanclass="parameter">starting_bit</span></dt><dd>Type:<ahref="1b2b1d64-20c1-7a64-0278-d9ff58ee9cc3.htm">Math.Gmp.Native<spanid="LST86CCB201_2"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST86CCB201_2?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mp_bitcnt_t</a><br/>The start bit index position.</dd></dl><h4class="subHeading">Return Value</h4>Type:<ahref="1b2b1d64-20c1-7a64-0278-d9ff58ee9cc3.htm">mp_bitcnt_t</a><br/>Return the index of the found bit.</div><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID2RB')"onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)"tabindex="0"><imgid="ID2RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Remarks</span></div><divid="ID2RBSection"class="collapsibleSection"><p>
Scan <spanclass="parameter">op</span>, starting from bit <spanclass="parameter">starting_bit</span>, towards more significant bits,
</p></div><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID3RB')"onkeypress="SectionExpandCollapse_CheckKey('ID3RB', event)"tabindex="0"><imgid="ID3RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Examples</span></div><divid="ID3RBSection"class="collapsibleSection"><divclass="codeSnippetContainer"><divclass="codeSnippetContainerTabs"><divid="ID0EDAABA_tab1"class="codeSnippetContainerTab"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','cs','1','4');return false;">C#</a></div><divid="ID0EDAABA_tab2"class="codeSnippetContainerTab"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','vb','2','4');return false;">VB</a></div><divid="ID0EDAABA_tab3"class="codeSnippetContainerTabPhantom"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','cpp','3','4');return false;">C++</a></div><divid="ID0EDAABA_tab4"class="codeSnippetContainerTabPhantom"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','fs','4','4');return false;">F#</a></div></div><divclass="codeSnippetContainerCodeContainer"><divclass="codeSnippetToolBar"><divclass="codeSnippetToolBarText"><aid="ID0EDAABA_copyCode"href="#"class="copyCodeSnippet"onclick="javascript:CopyToClipboard('ID0EDAABA');return false;"title="Copy">Copy</a></div></div><divid="ID0EDAABA_code_Div1"class="codeSnippetContainerCode"style="display: block"><prexml:space="preserve"><spanclass="highlight-comment">// Create, initialize, and set the value of op to 70.</span>
mpz_t op = <spanclass="highlight-keyword">new</span> mpz_t();
<spanclass="highlight-comment">// Release unmanaged memory allocated for op.</span>
gmp_lib.mpz_clear(op);</pre></div><divid="ID0EDAABA_code_Div2"class="codeSnippetContainerCode"style="display: none"><prexml:space="preserve"><spanclass="highlight-comment">' Create, initialize, and set the value of op to 70.</span>
<spanclass="highlight-keyword">Dim</span> op <spanclass="highlight-keyword">As</span><spanclass="highlight-keyword">New</span> mpz_t()
gmp_lib.mpz_clear(op)</pre></div><divid="ID0EDAABA_code_Div3"class="codeSnippetContainerCode"style="display: none"><p>No code example is currently available or this language may not be supported.</p></div><divid="ID0EDAABA_code_Div4"class="codeSnippetContainerCode"style="display: none"><p>No code example is currently available or this language may not be supported.</p></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID0EDAABA");</script></div><divclass="collapsibleAreaRegion"id="seeAlsoSection"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID4RB')"onkeypress="SectionExpandCollapse_CheckKey('ID4RB', event)"tabindex="0"><imgid="ID4RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>See Also</span></div><divid="ID4RBSection"class="collapsibleSection"><h4class="subHeading">Reference</h4><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm">gmp_lib Class</a></div><divclass="seeAlsoStyle"><ahref="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm">Math.Gmp.Native Namespace</a></div><divclass="seeAlsoStyle"><ahref="3e5268ed-796b-2880-93a3-8d17143f99b1.htm">mpz_and</a></div><divclass="seeAlsoStyle"><ahref="0ccb1bab-4817-1062-242d-41c181cacf77.htm">mpz_ior</a></div><divclass="seeAlsoStyle"><ahref="fd4c285a-e2e1-f8ba-97b3-08d4ae6a2ebf.htm">mpz_xor</a></div><divclass="seeAlsoStyle"><ahref="635ddf01-9c52-0d37-202e-c560b895fb7d.htm">mpz_com</a></div><divclass="seeAlsoStyle"><ahref="84bf95e4-d9d0-4ffe-f836-3650342de962.htm">mpz_popcount</a></div><divclass="seeAlsoStyle"><ahref="4dfb8bd5-8a6f-6919-7aa9-8c060d42b5d7.htm">mpz_hamdist</a></div><divclass="seeAlsoStyle"><ahref="480d1d15-b561-ac8f-b12a-f27ba075b3f2.htm">mpz_scan1</a></div><divclass="seeAlsoStyle"><ahref="f0caf821-320b-1a8b-87ff-84fcbdfd5801.htm">mpz_setbit</a></div><divclass="seeAlsoStyle"><ahref="8812c658-675a-b564-9159-2383971747b1.htm">mpz_clrbit</a></div><divclass="seeAlsoStyle"><ahref="4a959468-7670-9303-a5e7-3f1de8f17a62.htm">mpz_combit</a></div><divclass="seeAlsoStyle"><ahref="20a476ea-9a38-9ef3-1e23-da2b2eba69a9.htm">mpz_tstbit</a></div><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm"><ahref="/html/3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm#Integer_Logic_and_Bit_Fiddling">Integer Logic and Bit Fiddling</a></a></div><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm"><ahref="https://gmplib.org/manual/Integer-Logic-and-Bit-Fiddling.html#Integer-Logic-and-Bit-Fiddling">GNU MP - Integer Logic and Bit Fiddling</a></a></div></div></div></div><divid="pageFooter"class="pageFooter"></div></body></html>