in reply to Re^5: [OT] The interesting problem of comparing bit-strings. (More info.)
in thread [OT] The interesting problem of comparing bit-strings.
Please see Re^6: [OT] The interesting problem of comparing bit-strings. for the problems of finding bitstring needles that cross byte boundaries using byte-wise operations.
In brief, you need to perform two (different) byte compares using two different byte masks at each of 7 different offsets (with different masks and comparison values for each) for every byte in the haystack in order to locate a single byte needle.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: [OT] The interesting problem of comparing bit-strings. (More info.)
by marinersk (Priest) on Mar 25, 2015 at 15:52 UTC | |
by marinersk (Priest) on Mar 25, 2015 at 20:19 UTC |