We need to scan for a 16 bit word in a bit stream. It is not guaranteed to be aligned on byte or word boundaries.
There are various brute force methods; using tables and/or shifts.But what is the best way to do this ?
There are various brute force methods; using tables and/or shifts.But what is the best way to do this ?
usually, simple and error free method is the best.
ReplyDeletestate diagram is the best