
16 Apr
2012
16 Apr
'12
5:44 p.m.
I do remember that at least memcpy intrinsic worked pretty smart in that compiler.
It does.
I think I see what's going on. memcmp has to return -1, 0 or 1. This is why it does an initial DWORD loop to find the first mismatch, then does a byte compare to determine the return value. Thank you for pointing it out. Frankly speaking being busy with finding out the attitude of the boost people towards the problem I have really skipped the rest of generated code that have probably made the MS compiler to look a little bit smarter than it really is.
-- Michael Kochetkov