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:
8c1592d
)
filter: use reciprocal divide
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 18 Nov 2010 22:04:46 +0000
(22:04 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 19 Nov 2010 18:06:54 +0000
(10:06 -0800)
At compile time, we can replace the DIV_K instruction (divide by a
constant value) by a reciprocal divide.
At exec time, the expensive divide is replaced by a multiply, a less
expensive operation on most processors.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found