PERFORCE change 123648 for review
Attilio Rao
attilio at FreeBSD.org
Tue Jul 17 12:17:59 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123648
Change 123648 by attilio at attilio_xen on 2007/07/17 12:17:46
Style improvements to macros
Affected files ...
.. //depot/projects/xen3/src/sys/i386-xen/i386-xen/clock.c#15 edit
Differences ...
==== //depot/projects/xen3/src/sys/i386-xen/i386-xen/clock.c#15 (text+ko) ====
@@ -90,8 +90,8 @@
* 32-bit time_t's can't reach leap years before 1904 or after 2036, so we
* can use a simple formula for leap years.
*/
-#define LEAPYEAR(y) (((u_int)(y) % 4 == 0) ? 1 : 0)
-#define DAYSPERYEAR (31+28+31+30+31+30+31+31+30+31+30+31)
+#define LEAPYEAR(y) (!((y) % 4))
+#define DAYSPERYEAR (28+30*4+31*7)
int adjkerntz; /* local offset from GMT in seconds */
int clkintr_pending;
More information about the p4-projects
mailing list