git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce55dd3
)
[SOCK] Avoid integer divides where not necessary in include/net/sock.h
author
Eric Dumazet
<dada1@cosmosbay.com>
Fri, 21 Dec 2007 11:07:41 +0000
(
03:07
-0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 22:59:59 +0000
(14:59 -0800)
Because sk_wmem_queued, sk_sndbuf are signed, a divide per two
may force compiler to use an integer divide.
We can instead use a right shift.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found