Re: While we're at it
Colm MacCárthaigh <[email protected]> Wed, 31 Mar 2010 15:41:13 -0700
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
> Could someone explain why did DJB use 4 equal if lines inside the cicle > in str_len.c ? Wouldn't the use of a single line accomplish exactly the > same thing? it's a form of partial loop unrolling. See; http://www.stdlib.net/~colmmacc/2009/03/01/optimising-strlen/ for some discussion (Method 3). Hope that helps :-) -- Colm