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 ;------------------------------------------------------------------------------
20 ;------------------------------------------------------------------------------
23 ; InternalSyncDecrement (
24 ; IN volatile UINT32 *Value
26 ;------------------------------------------------------------------------------
27 global ASM_PFX(InternalSyncDecrement)
28 ASM_PFX(InternalSyncDecrement):
31 lock xadd dword [ecx], eax