Re: While we're at it
Hugo Monteiro <[email protected]> Wed, 31 Mar 2010 23:40:44 +0100
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
On 03/31/2010 11:35 PM, Alejandro Mery wrote: > On Thu, Apr 1, 2010 at 00:27, Hugo Monteiro<[email protected]> wrote: > >> Hi, >> >> i'm going to take the ride about "why did DJB did it like that" to ask >> something (one of many) that has been bothering me for a while now. >> >> 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? >> > speed :) it makes 1/4th of the jumps that way > > That was my guess also, but then another question pops into my mind. Why 4, and not more then? Is 4 the an average of something? Bare in mind we're talking about strings and not only words. R's, Hugo Monteiro. -- fct.unl.pt:~# cat .signature Hugo Monteiro Email : [email protected] Telefone : +351 212948300 Ext.15307 Web : http://hmonteiro.net Divisão de Informática Faculdade de Ciências e Tecnologia da Universidade Nova de Lisboa Quinta da Torre 2829-516 Caparica Portugal Telefone: +351 212948596 Fax: +351 212948548 www.fct.unl.pt [email protected] fct.unl.pt:~# _