[PATCH] add strncmp to PowerPC
    Segher Boessenkool 
    segher at kernel.crashing.org
       
    Wed Mar  5 16:26:06 EST 2008
    
    
  
>> Do we have any indication that it performs better than the C one ?
>
> I would expect it to, given that the assembler one has two branches in
> the per-byte loop compared to 3 in the C version.
But really, does it matter for strncmp() in the kernel?
Anyway, this asm code has bugs, as do both the current C version in the
kernel, and the code I posted.  We need to do better :-)
Segher
    
    
More information about the Linuxppc-dev
mailing list