Re: * 4 converted to << 2 for networking code

David S. Miller (davem@redhat.com)
Wed, 10 Jan 2001 06:38:35 -0800


Date: Wed, 10 Jan 2001 17:48:59 +0100
From: antirez <antirez@invece.org>

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'.

The compiler does this for you, check the assembler it outputs.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/