VirtualBox

Changeset 40959 in vbox


Ignore:
Timestamp:
Apr 17, 2012 10:45:00 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77513
Message:

Runtime/asm-fake: Update to make it work on SPARC

File:
1 edited

Legend:

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

    r29278 r40959  
    127127}
    128128
     129RTDECL(uint64_t) ASMAtomicAddU64(uint64_t volatile *pu64, uint64_t u64)
     130{
     131    uint64_t u64Old = *pu64;
     132    *pu64 = u64Old + u64;
     133    return u64Old;
     134}
     135
    129136RTDECL(uint32_t) ASMAtomicIncU32(uint32_t volatile *pu32)
    130137{
     
    137144}
    138145
     146RTDECL(uint64_t) ASMAtomicIncU64(uint64_t volatile *pu64)
     147{
     148    return *pu64 += 1;
     149}
     150
     151RTDECL(uint64_t) ASMAtomicDecU64(uint64_t volatile *pu64)
     152{
     153    return *pu64 -= 1;
     154}
     155
    139156RTDECL(void) ASMAtomicOrU32(uint32_t volatile *pu32, uint32_t u32)
    140157{
     
    145162{
    146163    *pu32 &= u32;
     164}
     165
     166RTDECL(void) ASMAtomicOrU64(uint64_t volatile *pu64, uint64_t u64)
     167{
     168    *pu64 |= u64;
     169}
     170
     171RTDECL(void) ASMAtomicAndU64(uint64_t volatile *pu64, uint64_t u64)
     172{
     173    *pu64 &= u64;
    147174}
    148175
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