VirtualBox

Changeset 34999 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 13, 2010 12:58:47 PM (14 years ago)
Author:
vboxsync
Message:

Backed out r68812, r68813 and r68816 - issue will be resolved with correct CRT usage instead.

File:
1 edited

Legend:

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

    r34993 r34999  
    3434
    3535#include <iprt/string.h>
    36 #include <iprt/asm-math.h>
    3736#include <iprt/assert.h>
    3837#include "internal/time.h"
     
    273272    pTime->fFlags = RTTIME_FLAGS_TYPE_UTC;
    274273    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;
    277276    if (i32Rem < 0)
    278277    {
     
    283282
    284283    /* second */
    285     i32Rem = (int32_t)ASMModU64ByU32RetU32(i64Div, 60);
     284    i32Rem = (int32_t)(i64Div % 60);
    286285    i64Div /= 60;
    287286    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