Changeset 34989 in vbox for trunk/src/VBox/Runtime/common/time
- Timestamp:
- Dec 13, 2010 11:03:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/time/time.cpp
r33540 r34989 34 34 35 35 #include <iprt/string.h> 36 #include <iprt/asm-math.h> 36 37 #include <iprt/assert.h> 37 38 #include "internal/time.h" … … 272 273 pTime->fFlags = RTTIME_FLAGS_TYPE_UTC; 273 274 i64Div = pTimeSpec->i64NanosecondsRelativeToUnixEpoch; 274 i32Rem = (int32_t)(i64Div %1000000000);275 i64Div /= 1000000000;275 i32Rem = ASMDivS64ByS32RetS32(i64Div, 1000000000); 276 i64Div = (int64_t)ASMDivS64ByS32RetS32(i64Div, 1000000000); 276 277 if (i32Rem < 0) 277 278 { … … 282 283 283 284 /* second */ 284 i32Rem = (int32_t)(i64Div %60);285 i32Rem = ASMDivS64ByS32RetS32(i64Div, 60); 285 286 i64Div /= 60; 286 287 if (i32Rem < 0)
Note:
See TracChangeset
for help on using the changeset viewer.