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