From: David Howells Date: Fri, 11 Dec 2009 16:11:05 +0000 (-0300) Subject: V4L/DVB: lgs8gxx: Use shifts rather than multiply/divide when possible X-Git-Tag: v2.6.33-rc1~70^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab1b9cecdc6540a5b79500b1c10c4362a9cc5f1;p=pandora-kernel.git V4L/DVB: lgs8gxx: Use shifts rather than multiply/divide when possible If val is a u64, then following: val *= (u64)1 << 32; val /= (u64)1 << 32; should surely be better represented as: val <<= 32; val >>= 32; Especially as, for the division, the compiler might want to actually do a division: drivers/built-in.o: In function `lgs8gxx_get_afc_phase': drivers/media/dvb/frontends/lgs8gxx.c:250: undefined reference to `__udivdi3' Signed-off-by: David Howells Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed