From: john stultz Date: Sun, 30 Oct 2005 23:01:42 +0000 (-0800) Subject: [PATCH] NTP shift_right cleanup X-Git-Tag: v2.6.15-rc1~59^2~15^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb34a412750291e4e5e9f1d0fe7ae1b7e976098;p=pandora-kernel.git [PATCH] NTP shift_right cleanup Create a macro shift_right() that avoids the numerous ugly conditionals in the NTP code that look like: if(a < 0) b = -(-a >> shift); else b = a >> shift; Replacing it with: b = shift_right(a, shift); This should have zero effect on the logic, however it should probably have a bit of testing just to be sure. Also replace open-coded min/max with the macros. Signed-off-by : John Stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed