aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <[email protected]>2011-12-11 21:13:19 +0300
committerIngo Molnar <[email protected]>2011-12-12 18:33:42 +0100
commit890890cb8e415e1e7a61bfe3c8e246f710196824 (patch)
treea4694f6470484ebac1d82ed317fa5ce5c198006e /net/lapb/lapb_timer.c
parent79f1ddd06471b094ae30eb17b33beb9f1234ca93 (diff)
x86/i386: Use less assembly in strlen(), speed things up a bit
Current i386 strlen() hardcodes NOT/DEC sequence. DEC is mentioned to be suboptimal on Core2. So, put only REPNE SCASB sequence in assembly, compiler can do the rest. The difference in generated code is like below (MCORE2=y): <strlen>: push %edi mov $0xffffffff,%ecx mov %eax,%edi xor %eax,%eax repnz scas %es:(%edi),%al not %ecx - dec %ecx - mov %ecx,%eax + lea -0x1(%ecx),%eax pop %edi ret Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Jan Beulich <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions