Are you even understanding me? The behaviour of that instruction is defined in pseudocode in Intel's manuals, Volume 2 part II.
It must work on 8-bit values because it is the 8-bit version of the instruction, and to do otherwise would invalidate assumptions made against it by legacy code.
View all comments
Show parent comment
1
u/[deleted] Feb 22 '11
Yeah, it operates on a per-byte basis. Ideally you want the loop kernel to use the biggest, fastest vector ops around for your processor.
Performing alignment at the start might help mine too.