Boost C++ Libraries: Ticket #9243: Subopimal bitwise or (with bytes) https://svn.boost.org/trac10/ticket/9243 <p> I'd expect oring with a byte (or any integral builtin type smaller or equal in size to a static, unchecked, unsigned cpp_int) to produce a single instruction, yet it evaluates to a call to a fairly fat function... </p> <p> ps. I'm doing number&lt;&gt; big_int; unsigned char const * p_data; while () { big_int |= *p_data++; big_int &lt;&lt;= 8; } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9243 Trac 1.4.3 Domagoj Šarić Sat, 12 Oct 2013 09:52:21 GMT description changed https://svn.boost.org/trac10/ticket/9243#comment:1 https://svn.boost.org/trac10/ticket/9243#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/9243?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket John Maddock Sat, 12 Oct 2013 12:02:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9243#comment:2 https://svn.boost.org/trac10/ticket/9243#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86262" title="Use memcpy in more places. Add optimized bitwise operations for ...">[86262]</a>) Use memcpy in more places. Add optimized bitwise operations for unsigned integers. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9243" title="#9243: Bugs: Subopimal bitwise or (with bytes) (closed: fixed)">#9243</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9231" title="#9231: Bugs: Suboptimal assignment (closed: fixed)">#9231</a>. </p> Ticket