FreeBSD Bugzilla – Attachment 83748 Details for
Bug 119591
[amd64] [patch] time_t on 64-bit architecture
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 587 bytes, created by
IKEGAMI Akiko
on 2008-01-12 11:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
IKEGAMI Akiko
Created:
2008-01-12 11:20:00 UTC
Size:
587 bytes
patch
obsolete
>--- sys/amd64/isa/clock.orig 2008-01-10 21:38:55.000000000 +0900 >+++ sys/amd64/isa/clock.c 2008-01-12 19:38:37.000000000 +0900 >@@ -82,11 +82,7 @@ > #include <isa/isavar.h> > #endif > >-/* >- * 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 LEAPYEAR(y) (((u_int)(y) % 400 == 0) ? 1 : ((u_int)(y) % 100 != 0 && (u_int)(y) % 4 == 0) ? 1 : 0) > #define DAYSPERYEAR (31+28+31+30+31+30+31+31+30+31+30+31) > > #define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 119591
: 83748