<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../../../memchr/all.html"title="show sidebar"></a></div><inputclass="search-input"name="search"aria-label="Run search in the documentation"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"tabindex="-1"><ahref="../../../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../../../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Module <ahref="../../index.html">memchr</a>::<wbr><ahref="../index.html">arch</a>::<wbr><aclass="mod"href="#">all</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../../../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../../../src/memchr/arch/all/mod.rs.html#1-234">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Contains architecture independent routines.</p>
<p>These routines are often used as a “fallback” implementation when the more
specialized architecture dependent routines are unavailable.</p>
</div></details><h2id="modules"class="section-header">Modules<ahref="#modules"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="mod"href="memchr/index.html"title="mod memchr::arch::all::memchr">memchr</a></div><divclass="desc docblock-short">Provides architecture independent implementations of <code>memchr</code> and friends.</div></li><li><divclass="item-name"><aclass="mod"href="packedpair/index.html"title="mod memchr::arch::all::packedpair">packedpair</a></div><divclass="desc docblock-short">Provides an architecture independent implementation of the “packed pair”
algorithm.</div></li><li><divclass="item-name"><aclass="mod"href="rabinkarp/index.html"title="mod memchr::arch::all::rabinkarp">rabinkarp</a></div><divclass="desc docblock-short">An implementation of the <ahref="https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithm">Rabin-Karp substring search algorithm</a>.</div></li><li><divclass="item-name"><aclass="mod"href="shiftor/index.html"title="mod memchr::arch::all::shiftor">shiftor</a></div><divclass="desc docblock-short">An implementation of the <ahref="https://en.wikipedia.org/wiki/Bitap_algorithm">Shift-Or substring search algorithm</a>.</div></li><li><divclass="item-name"><aclass="mod"href="twoway/index.html"title="mod memchr::arch::all::twoway">twoway</a></div><divclass="desc docblock-short">An implementation of the <ahref="https://en.wikipedia.org/wiki/Two-way_string-matching_algorithm">Two-Way substring search algorithm</a>.</div></li></ul><h2id="functions"class="section-header">Functions<ahref="#functions"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="fn"href="fn.is_equal.html"title="fn memchr::arch::all::is_equal">is_equal</a></div><divclass="desc docblock-short">Compare corresponding bytes in <code>x</code> and <code>y</code> for equality.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_equal_raw.html"title="fn memchr::arch::all::is_equal_raw">is_equal_raw</a><suptitle="unsafe function">⚠</sup></div><divclass="desc docblock-short">Compare <code>n</code> bytes at the given pointers for equality.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_prefix.html"title="fn memchr::arch::all::is_prefix">is_prefix</a></div><divclass="desc docblock-short">Returns true if and only if <code>needle</code> is a prefix of <code>haystack</code>.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_suffix.html"title="fn memchr::arch::all::is_suffix">is_suffix</a></div><divclass="desc docblock-short">Returns true if and only if <code>needle</code> is a suffix of <code>haystack</code>.</div></li></ul></section></div></main></body></html>