Opened 9 years ago
Closed 9 years ago
#9243 closed Bugs (fixed)
Subopimal bitwise or (with bytes)
Reported by: | Domagoj Šarić | Owned by: | John Maddock |
---|---|---|---|
Milestone: | To Be Determined | Component: | multiprecision |
Version: | Boost 1.54.0 | Severity: | Optimization |
Keywords: | Cc: |
Description (last modified by )
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...
ps. I'm doing number<> big_int; unsigned char const * p_data; while () { big_int |= *p_data++; big_int <<= 8; }
Change History (2)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [86262]) Use memcpy in more places. Add optimized bitwise operations for unsigned integers. Fixes #9243. Refs #9231.