lkml.org 
[lkml]   [2015]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] small update for strlen, strnlen, use less cpu instructions
From
On Tue, Jun 16, 2015 at 11:28 AM, Orestes Leal Rodriguez
<lukes357@gmail.com> wrote:
> very small update to strlen and strnlen that now use less cpu instructions
> by using a counter to avoid the memory addresses substraction to find the
> length of the string.

This is not a valid patch submission. Please see
Documentation/SubmittingPatches.

Anyway, why do you think your patch makes strlen() better?
Now strlen() increments a variable for each character it faces, hence
it will consume more cycles.

--
Thanks,
//richard


\
 
 \ /
  Last update: 2015-06-16 13:01    [W:0.028 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site