john stultz
1bb34a4127
[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 <johnstul@us.ibm.com >
Signed-off-by: Andrew Morton <akpm@osdl.org >
Signed-off-by: Linus Torvalds <torvalds@osdl.org >
2005-10-30 17:37:18 -08:00
..
2005-10-28 16:28:04 +01:00
2005-10-18 23:19:47 -07:00
2005-10-14 17:10:12 -07:00
2005-10-17 17:03:57 -07:00
2005-10-22 14:27:05 -04:00
2005-10-28 08:16:49 -07:00
2005-10-28 08:16:47 -07:00
2005-10-28 08:56:34 -07:00
2005-10-19 23:11:33 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:14 -08:00
2005-10-16 00:17:33 -07:00
2005-10-28 09:52:56 -07:00
2005-10-30 17:37:10 -08:00
2005-10-28 08:53:49 -07:00
2005-10-29 02:23:58 -02:00
2005-10-28 16:30:00 -02:00
2005-10-28 16:25:58 -04:00
2005-10-28 08:16:47 -07:00
2005-10-28 10:13:16 -07:00
2005-10-28 08:16:46 -07:00
2005-10-21 22:58:51 -04:00
2005-10-21 22:58:51 -04:00
2005-10-21 22:58:51 -04:00
2005-10-29 21:40:41 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:09 -07:00
2005-10-28 14:02:13 -07:00
2005-10-28 14:02:15 -07:00
2005-10-28 10:13:16 -07:00
2005-10-29 19:32:20 +01:00
2005-10-28 08:16:47 -07:00
2005-10-28 13:09:47 -07:00
2005-10-28 08:16:47 -07:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 04:44:42 -05:00
2005-10-17 08:59:10 -07:00
2005-10-28 08:16:51 -07:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:44 -07:00
2005-10-29 21:40:44 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:44 -07:00
2005-10-29 21:40:44 -07:00
2005-10-28 14:02:15 -07:00
2005-10-18 14:20:16 -07:00
2005-10-28 16:30:00 -02:00
2005-10-12 15:12:21 -07:00
2005-10-27 22:12:39 -04:00
2005-10-27 22:12:44 -04:00
2005-10-28 08:16:51 -07:00
2005-10-29 11:25:16 -07:00
2005-10-28 15:36:58 -07:00
2005-10-30 17:37:15 -08:00
2005-10-28 08:16:47 -07:00
2005-10-17 15:27:58 -07:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:41 -07:00
2005-10-29 21:40:35 -07:00
2005-10-30 11:14:39 +11:00
2005-10-29 21:40:42 -07:00
2005-10-30 17:37:11 -08:00
2005-10-29 19:31:54 +01:00
2005-10-29 19:31:54 +01:00
2005-10-28 16:30:00 -02:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:13 -08:00
2005-10-30 17:37:14 -08:00
2005-10-28 08:16:47 -07:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:18 -08:00
2005-10-28 08:16:46 -07:00
2005-10-28 08:16:49 -07:00
2005-10-28 16:47:45 -07:00
2005-10-28 16:47:51 -07:00
2005-10-28 16:47:46 -07:00
2005-10-29 21:40:35 -07:00
2005-10-28 14:02:12 -07:00