4 ms·
That makes the X86 assembly version look straightforward: http://www.int80h.org/strlen/ http://www.int80h.org/strlen/. I think it is just a fallback implementat
by briansmith 18y ago
That makes the X86 assembly version look straightforward: http://www.int80h.org/strlen/ http://www.int80h.org/strlen/. I think it is just a fallback implementation that is used when no optimized version has been created for the target processor. Every time I've looked my compiler has used a hand-optimized version for every platform. Quite possibly, this is 100% dead code.
- sketerpot 18y agoThat looks like a pretty straightforward translation of the basic while (d++ = s++); code. It uses higher-level instructions, but those probably get microcoded to the same thing anyway. (Note: my information on the inner workings of x86 CPUs may be a bit dated.)