diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-01-04 11:30:01 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-01-04 11:30:01 +0000 |
commit | a8574b388890db2212e4cff87aaf3be885cd83e8 (patch) | |
tree | df2c5a23811547d7eee37fea7df30de34630dbbc | |
parent | 3ada76392af8d92c7d0d52d66af401c46d815773 (diff) | |
download | FreeBSD-src-a8574b388890db2212e4cff87aaf3be885cd83e8.zip FreeBSD-src-a8574b388890db2212e4cff87aaf3be885cd83e8.tar.gz |
Per BDE- make this more like the i386 code in that, as per the comment,
the simple calculation is good enough.
Submitted by: bde@freebsd.org
-rw-r--r-- | sys/alpha/alpha/clock.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/alpha/alpha/clock.c b/sys/alpha/alpha/clock.c index e11c9fb..b00a895 100644 --- a/sys/alpha/alpha/clock.c +++ b/sys/alpha/alpha/clock.c @@ -63,8 +63,11 @@ #define SECDAY ((unsigned)(24*SECHOUR)) /* seconds per day */ #define SECYR ((unsigned)(365*SECDAY)) /* seconds per common year */ -#define LEAPYEAR(y) \ - (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) +/* + * 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) (((y) % 4) == 0) device_t clockdev; int clockinitted; |