antirez wrote:
>
> Hi all,
>
> The attached patch converts many occurences of '* 4' in the networking code
> (often used to convert in bytes the TCP data offset and the IP header len)
> to the faster '<< 2'. Since this was a quite repetitive work it's better
> if someone double-check it before to apply the patch.
> The patch is for linux-2.4.
This patch isn't really necessary, because GCC will automatically
convert multiplications and divisions by powers of two to use shifts.
--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
- * 4 converted to << 2 for networking code antirez
- Re: * 4 converted to << 2 for networking code Brian Gerst
- Re: * 4 converted to << 2 for networking ... antirez
- Re: * 4 converted to << 2 for network... Jakob �stergaard
- Re: * 4 converted to << 2 for net... Mike Harrold
- Re: * 4 converted to << 2 fo... Chris Jones
- Re: * 4 converted to << 2 fo... Jamie Lokier
- Re: * 4 converted to << 2 for net... antirez
- Re: * 4 converted to << 2 fo... Pauline Middelink
- Re: * 4 converted to << 2 for net... H. Peter Anvin
- Re: * 4 converted to << 2 for networking code David S. Miller
- Re: * 4 converted to << 2 for networking code Matthias Andree

