VirtualBox

Changeset 60799 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 2, 2016 8:11:08 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106998
Message:

iprt/asm.h: 16-bit fixes and todos.

File:
1 edited

Legend:

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

    r60603 r60799  
    16561656    ASMMemoryFence();
    16571657    Assert(!((uintptr_t)pu32 & 3));
     1658#if ARCH_BITS == 16
     1659    AssertFailed();  /** @todo 16-bit */
     1660#endif
    16581661    return *pu32;
    16591662}
     
    16691672{
    16701673    Assert(!((uintptr_t)pu32 & 3));
     1674#if ARCH_BITS == 16
     1675    AssertFailed();  /** @todo 16-bit */
     1676#endif
    16711677    return *pu32;
    16721678}
     
    16831689    ASMMemoryFence();
    16841690    Assert(!((uintptr_t)pi32 & 3));
     1691#if ARCH_BITS == 16
     1692    AssertFailed();  /** @todo 16-bit */
     1693#endif
    16851694    return *pi32;
    16861695}
     
    16961705{
    16971706    Assert(!((uintptr_t)pi32 & 3));
     1707#if ARCH_BITS == 16
     1708    AssertFailed();  /** @todo 16-bit */
     1709#endif
    16981710    return *pi32;
    16991711}
     
    22572269{
    22582270    Assert(!((uintptr_t)pu32 & 3));
     2271#if ARCH_BITS >= 32
    22592272    *pu32 = u32;
     2273#else
     2274    ASMAtomicXchgU32(pu32, u32);
     2275#endif
    22602276}
    22612277
     
    22822298{
    22832299    Assert(!((uintptr_t)pi32 & 3));
     2300#if ARCH_BITS >= 32
    22842301    *pi32 = i32;
     2302#else
     2303    ASMAtomicXchgS32(pi32, i32);
     2304#endif
    22852305}
    22862306
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