REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
		
			
				
	
	
		
			41 lines
		
	
	
		
			929 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			929 B
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  InterlockedDecrement function
 | 
						|
 | 
						|
  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
 | 
						|
  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
/**
 | 
						|
  Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
 | 
						|
**/
 | 
						|
 | 
						|
long
 | 
						|
_InterlockedDecrement (
 | 
						|
  long  *lpAddend
 | 
						|
  );
 | 
						|
 | 
						|
#pragma intrinsic(_InterlockedDecrement)
 | 
						|
 | 
						|
/**
 | 
						|
  Performs an atomic decrement of an 32-bit unsigned integer.
 | 
						|
 | 
						|
  Performs an atomic decrement of the 32-bit unsigned integer specified by
 | 
						|
  Value and returns the decrement value. The decrement operation must be
 | 
						|
  performed using MP safe mechanisms. The state of the return value is not
 | 
						|
  guaranteed to be MP safe.
 | 
						|
 | 
						|
  @param  Value A pointer to the 32-bit value to decrement.
 | 
						|
 | 
						|
  @return The decrement value.
 | 
						|
 | 
						|
**/
 | 
						|
UINT32
 | 
						|
EFIAPI
 | 
						|
InternalSyncDecrement (
 | 
						|
  IN      volatile UINT32  *Value
 | 
						|
  )
 | 
						|
{
 | 
						|
  return _InterlockedDecrement ((long *)(Value));
 | 
						|
}
 |