VirtualBox

Ignore:
Timestamp:
Dec 13, 2010 11:03:02 AM (14 years ago)
Author:
vboxsync
Message:

IPRT/RTTimeExplode: Fixed missing alldvrm issue on W2K/NT4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/time/time.cpp

    r33540 r34989  
    3434
    3535#include <iprt/string.h>
     36#include <iprt/asm-math.h>
    3637#include <iprt/assert.h>
    3738#include "internal/time.h"
     
    272273    pTime->fFlags = RTTIME_FLAGS_TYPE_UTC;
    273274    i64Div = pTimeSpec->i64NanosecondsRelativeToUnixEpoch;
    274     i32Rem = (int32_t)(i64Div % 1000000000);
    275     i64Div /= 1000000000;
     275    i32Rem = ASMDivS64ByS32RetS32(i64Div, 1000000000);
     276    i64Div = (int64_t)ASMDivS64ByS32RetS32(i64Div, 1000000000);
    276277    if (i32Rem < 0)
    277278    {
     
    282283
    283284    /* second */
    284     i32Rem = (int32_t)(i64Div % 60);
     285    i32Rem = ASMDivS64ByS32RetS32(i64Div, 60);
    285286    i64Div /= 60;
    286287    if (i32Rem < 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette