ASMAtomicUoAndU32.asm revision 188d18b68e31c49bf9142db5f6afdce01cde4aba
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; $Id$
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;; @file
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd; IPRT - ASMAtomicUoAndU32().
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd;
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; Copyright (C) 2013 Oracle Corporation
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; This file is part of VirtualBox Open Source Edition (OSE), as
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc; available from http://www.virtualbox.org. This file is free software;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; you can redistribute it and/or modify it under the terms of the GNU
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; General Public License (GPL) as published by the Free Software
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen; Foundation, in version 2 as it comes in the "COPYING" file of the
2e545ce2450a9953665f701bb05350f0d3f26275nd; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; The contents of this file may alternatively be used under the terms
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; of the Common Development and Distribution License Version 1.0
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
3f08db06526d6901aa08c110b5bc7dde6bc39905nd; VirtualBox OSE distribution, in which case the provisions of the
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; CDDL are applicable instead of those of the GPL.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; You may elect to license modified versions of this file under the
3f08db06526d6901aa08c110b5bc7dde6bc39905nd; terms and conditions of either the GPL or the CDDL or both.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
0cf3cdbaa1dad11cbf1ce32e48f1b4ec88cf779fnilgun;*******************************************************************************
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung;* Header Files *
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;*******************************************************************************
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem%include "iprt/asmdefs.mac"
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem
a78048ccbdb6256da15e6b0e7e95355e480c2301ndBEGINCODE
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; Atomically OR an unsigned 32-bit value, unordered.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; @param pu32 x86:esp+4 gcc:rdi msc:rcx
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; @param u32Or x86:esp+8 gcc:rsi msc:rdx
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd; @returns void
a78048ccbdb6256da15e6b0e7e95355e480c2301nd;
a78048ccbdb6256da15e6b0e7e95355e480c2301ndBEGINPROC_EXPORTED ASMAtomicUoAndU32
a78048ccbdb6256da15e6b0e7e95355e480c2301nd%ifdef RT_ARCH_AMD64
a78048ccbdb6256da15e6b0e7e95355e480c2301nd %ifdef ASM_CALL64_MSC
a78048ccbdb6256da15e6b0e7e95355e480c2301nd and [rcx], edx
a78048ccbdb6256da15e6b0e7e95355e480c2301nd %else
a78048ccbdb6256da15e6b0e7e95355e480c2301nd and [rdi], esi
a78048ccbdb6256da15e6b0e7e95355e480c2301nd %endif
a78048ccbdb6256da15e6b0e7e95355e480c2301nd%elifdef RT_ARCH_X86
a78048ccbdb6256da15e6b0e7e95355e480c2301nd mov ecx, [esp + 04h]
a78048ccbdb6256da15e6b0e7e95355e480c2301nd mov edx, [esp + 08h]
a78048ccbdb6256da15e6b0e7e95355e480c2301nd and [ecx], edx
a78048ccbdb6256da15e6b0e7e95355e480c2301nd%endif
a78048ccbdb6256da15e6b0e7e95355e480c2301nd ret
a78048ccbdb6256da15e6b0e7e95355e480c2301ndENDPROC ASMAtomicUoAndU32
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd