Date: Tue, 17 Jul 2007 12:17:58 GMT From: Attilio Rao <attilio@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123648 for review Message-ID: <200707171217.l6HCHwv9098180@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123648 Change 123648 by attilio@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707171217.l6HCHwv9098180>