1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
8 ; InterlockedDecrement.Asm
12 ; InterlockedDecrement function
16 ;------------------------------------------------------------------------------
21 ;------------------------------------------------------------------------------
24 ; InternalSyncDecrement (
25 ; IN volatile UINT32 *Value
27 ;------------------------------------------------------------------------------
28 global ASM_PFX(InternalSyncDecrement)
29 ASM_PFX(InternalSyncDecrement):
31 lock xadd dword [rcx], eax