VirtualBox

Changeset 87229 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jan 12, 2021 4:11:02 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142185
Message:

IPRT: Fixed bug in ASMBitFirstSet-generic.cpp and extended tstRTBitOperations.cpp. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asm/ASMBitFirstSet-generic.cpp

    r87203 r87229  
    4646    {
    4747        uint32_t u32 = *(const volatile uint32_t RT_FAR *)pu;
    48         if (u32 != UINT32_MAX)
     48        if (u32 != 0)
    4949        {
    5050            size_t const iBaseBit = ((uintptr_t)pu - (uintptr_t)pvBitmap) * 8;
     
    8585    {
    8686        uint32_t u32 = *(const volatile uint32_t RT_FAR *)pu;
    87         if (u32 != UINT32_MAX)
     87        if (u32 != 0)
    8888        {
    8989            size_t const iBaseBit = ((uintptr_t)pu - (uintptr_t)pvBitmap) * 8;
Note: See TracChangeset for help on using the changeset viewer.

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