From: Eric Dumazet Date: Thu, 18 Nov 2010 22:04:46 +0000 (+0000) Subject: filter: use reciprocal divide X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=c26aed40f4fd18f86bcc6aba557cab700b129b73;hp=c26aed40f4fd18f86bcc6aba557cab700b129b73;p=net-next-2.6.git filter: use reciprocal divide 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 Acked-by: Changli Gao Signed-off-by: David S. Miller ---