View | Details | Raw Unified | Return to bug 119591
Collapse All | Expand All

(-)sys/amd64/isa/clock.c (-5 / +1 lines)
Lines 82-92 Link Here
82
#include <isa/isavar.h>
82
#include <isa/isavar.h>
83
#endif
83
#endif
84
84
85
/*
85
#define	LEAPYEAR(y) (((u_int)(y) % 400 == 0) ? 1 : ((u_int)(y) % 100 != 0 && (u_int)(y) % 4 == 0) ? 1 : 0)
86
 * 32-bit time_t's can't reach leap years before 1904 or after 2036, so we
87
 * can use a simple formula for leap years.
88
 */
89
#define	LEAPYEAR(y) (((u_int)(y) % 4 == 0) ? 1 : 0)
90
#define DAYSPERYEAR   (31+28+31+30+31+30+31+31+30+31+30+31)
86
#define DAYSPERYEAR   (31+28+31+30+31+30+31+31+30+31+30+31)
91
87
92
#define	TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
88
#define	TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))

Return to bug 119591