[lkml]   [2001]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: * 4 converted to << 2 for networking code
   Date: 	Wed, 10 Jan 2001 17:48:59 +0100
From: antirez <>

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.

David S. Miller
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.066 / U:14.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site