VirtualBox

Changeset 99563 in vbox


Ignore:
Timestamp:
May 2, 2023 10:50:14 AM (17 months ago)
Author:
vboxsync
Message:

include/iprt/asm.h: The bitmap needs to be aligned on a 32-bit address only and not pointer size aligned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm.h

    r99131 r99563  
    68206820# else
    68216821    int32_t offBitmap = iBit / 32;
    6822     AssertRelease(!((uintptr_t)pvBitmap & (sizeof(uintptr_t) - 1))); /* This assumes a power of two uintptr_t size. */
     6822    AssertRelease(!((uintptr_t)pvBitmap & (sizeof(uint32_t) - 1)));
    68236823    rc.u32 = RT_LE2H_U32(ASMAtomicUoReadU32(&((uint32_t volatile *)pvBitmap)[offBitmap])) >> (iBit & 31);
    68246824    rc.u32 &= 1;
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