VirtualBox

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


Ignore:
Timestamp:
Jan 12, 2021 10:27:17 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142178
Message:

IPRT: Added missing ASMAtomicUoXorU32 function. bugref:9898

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asm/ASMAtomicUoXorU32.asm

    r87221 r87222  
    11; $Id$
    22;; @file
    3 ; IPRT - ASMAtomicUoAndU32().
     3; IPRT - ASMAtomicUoXorU32().
    44;
    55
     
    3333
    3434;;
    35 ; Atomically OR an unsigned 32-bit value, unordered.
     35; Atomically XOR an unsigned 32-bit value, unordered.
    3636;
    3737; @param    pu32     x86:esp+4   gcc:rdi  msc:rcx
     
    4040; @returns  void
    4141;
    42 BEGINPROC_EXPORTED ASMAtomicUoAndU32
     42BEGINPROC_EXPORTED ASMAtomicUoXorU32
    4343%ifdef RT_ARCH_AMD64
    4444 %ifdef ASM_CALL64_MSC
    45         and     [rcx], edx
     45        xor     [rcx], edx
    4646 %else
    47         and     [rdi], esi
     47        xor     [rdi], esi
    4848 %endif
    4949%elifdef RT_ARCH_X86
    5050        mov     ecx, [esp + 04h]
    5151        mov     edx, [esp + 08h]
    52         and     [ecx], edx
     52        xor     [ecx], edx
    5353%endif
    5454        ret
    55 ENDPROC ASMAtomicUoAndU32
     55ENDPROC ASMAtomicUoXorU32
    5656
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