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-09-07 16:57:29 -07:00
2005-10-30 17:37:15 -08:00
2005-10-29 21:40:38 -07:00
2005-10-28 08:16:49 -07:00
2005-10-28 08:16:49 -07:00
2005-07-27 16:26:06 -07:00
2005-09-10 10:06:37 -07:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:14 -08:00
2005-10-08 15:00:57 -07:00
2005-07-27 16:26:06 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:39 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:40 -07:00
2005-10-29 21:40:41 -07:00
2005-09-07 16:57:45 -07:00
2005-07-27 16:25:51 -07:00
2005-05-05 16:36:31 -07:00
2005-06-23 09:45:10 -07:00
2005-06-25 16:24:45 -07:00
2005-10-29 21:40:42 -07:00
2005-10-08 15:00:57 -07:00
2005-06-24 00:05:18 -07:00
2005-09-07 16:58:01 -07:00
2005-06-25 16:24:51 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:10 -08:00
2005-09-13 08:22:29 -07:00
2005-07-26 14:35:43 -07:00
2005-09-28 07:46:41 -07:00
2005-04-16 15:20:36 -07:00
2005-10-27 09:08:43 -07:00
2005-10-21 15:38:08 -07:00
2005-09-21 10:11:54 -07:00
2005-07-07 18:23:46 -07:00
2005-09-07 16:57:43 -07:00
2005-10-17 15:27:58 -07:00
2005-09-07 16:57:45 -07:00
2005-10-29 21:40:39 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 10:28:13 -07:00
2005-09-12 10:49:58 -07:00
2005-09-07 16:57:17 -07:00
2005-09-10 10:06:21 -07:00
2005-06-21 18:46:13 -07:00
2005-08-01 10:03:56 -07:00
2005-09-22 22:17:33 -07:00
2005-08-29 16:01:32 -07:00
2005-10-30 17:37:18 -08:00
2005-10-30 17:37:18 -08:00
2005-04-16 15:20:36 -07:00
2005-07-12 20:38:38 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:45 -07:00