update for HEAD-2003091401
[reactos.git] / lib / ntdll / rtl / time.c
index d0d8a7e..05a9faa 100644 (file)
@@ -30,8 +30,8 @@
 #define DAYSPERLEAPYEAR    366
 #define MONSPERYEAR        12
 
-#define TICKSTO1970         0x019db1ded53e8000
-#define TICKSTO1980         0x01a8e79fe1d58000
+#define TICKSTO1970         0x019db1ded53e8000LL
+#define TICKSTO1980         0x01a8e79fe1d58000LL
 
 static const int YearLengths[2] = {DAYSPERNORMALYEAR, DAYSPERLEAPYEAR};
 static const int MonthLengths[2][MONSPERYEAR] =
@@ -55,6 +55,9 @@ static __inline void NormalizeTimeFields(CSHORT *FieldToNormalize,
 
 /* FUNCTIONS *****************************************************************/
 
+/*
+ * @unimplemented
+ */
 VOID
 STDCALL
 RtlTimeToTimeFields(
@@ -137,6 +140,9 @@ RtlTimeToTimeFields(
 }
 
 
+/*
+ * @unimplemented
+ */
 BOOLEAN
 STDCALL
 RtlTimeFieldsToTime(
@@ -204,34 +210,35 @@ RtlTimeFieldsToTime(
 }
 
 
+/*
+ * @implemented
+ */
 VOID
 STDCALL
 RtlSecondsSince1970ToTime(
        ULONG SecondsSince1970,
        PLARGE_INTEGER Time)
 {
-  LONGLONG llTime;
-
-  llTime = (SecondsSince1970 * TICKSPERSEC) + TICKSTO1970;
-
-  *Time = *(LARGE_INTEGER *)&llTime;
+  Time->QuadPart = (SecondsSince1970 * TICKSPERSEC) + TICKSTO1970;
 }
 
 
+/*
+ * @implemented
+ */
 VOID
 STDCALL
 RtlSecondsSince1980ToTime(
        ULONG SecondsSince1980,
        PLARGE_INTEGER Time)
 {
-  LONGLONG llTime;
-
-  llTime = (SecondsSince1980 * TICKSPERSEC) + TICKSTO1980;
-
-  *Time = *(LARGE_INTEGER *)&llTime;
+  Time->QuadPart = (SecondsSince1980 * TICKSPERSEC) + TICKSTO1980;
 }
 
 
+/*
+ * @implemented
+ */
 BOOLEAN
 STDCALL
 RtlTimeToSecondsSince1970(
@@ -252,6 +259,9 @@ RtlTimeToSecondsSince1970(
 }
 
 
+/*
+ * @implemented
+ */
 BOOLEAN
 STDCALL
 RtlTimeToSecondsSince1980(
@@ -272,6 +282,9 @@ RtlTimeToSecondsSince1980(
 }
 
 
+/*
+ * @implemented
+ */
 NTSTATUS
 STDCALL
 RtlLocalTimeToSystemTime(PLARGE_INTEGER LocalTime,
@@ -294,6 +307,9 @@ RtlLocalTimeToSystemTime(PLARGE_INTEGER LocalTime,
 }
 
 
+/*
+ * @implemented
+ */
 NTSTATUS
 STDCALL
 RtlSystemTimeToLocalTime(PLARGE_INTEGER SystemTime,
@@ -316,6 +332,9 @@ RtlSystemTimeToLocalTime(PLARGE_INTEGER SystemTime,
 }
 
 
+/*
+ * @implemented
+ */
 VOID
 STDCALL
 RtlTimeToElapsedTimeFields(IN PLARGE_INTEGER Time,