VirtualBox

Changeset 26526 in vbox for trunk/include


Ignore:
Timestamp:
Feb 15, 2010 3:36:01 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57697
Message:

VMM,asm.h,Config.kmk: win.amd64 warnings; fixed the ASMAtomicSubU32 signature.

File:
1 edited

Legend:

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

    r25671 r26526  
    37043704 *
    37053705 * @returns The old value.
    3706  * @param   pi32        Pointer to the value.
    3707  * @param   i32         Number to subtract.
    3708  */
    3709 DECLINLINE(uint32_t) ASMAtomicSubU32(int32_t volatile *pi32, uint32_t i32)
    3710 {
    3711     return ASMAtomicAddU32((uint32_t volatile *)pi32, (uint32_t)-(int32_t)i32);
     3706 * @param   pu32        Pointer to the value.
     3707 * @param   u32         Number to subtract.
     3708 */
     3709DECLINLINE(uint32_t) ASMAtomicSubU32(uint32_t volatile *pu32, uint32_t u32)
     3710{
     3711    return ASMAtomicAddU32(pu32, (uint32_t)-(int32_t)u32);
    37123712}
    37133713
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