aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/af_x25.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-11-18 22:04:46 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-19 10:06:54 -0800
commitc26aed40f4fd18f86bcc6aba557cab700b129b73 (patch)
treee723d358ddd6facc3af4f37be02fabcf71e3e605 /net/x25/af_x25.c
parentfilter: cleanup codes[] init (diff)
downloadlinux-dev-c26aed40f4fd18f86bcc6aba557cab700b129b73.tar.xz
linux-dev-c26aed40f4fd18f86bcc6aba557cab700b129b73.zip
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 <eric.dumazet@gmail.com> Acked-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions