]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/InterlockedDecrement.c
Split out Synchronization Library from Base Library
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / InterlockedDecrement.c
index bc171a79cc3e5f985554216dc9b74462995e59de..9e2e339aeeee5c91ca8a209177315300588f9401 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   InterlockedDecrement function\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 \r
 **/\r
 \r
-#if _MSC_EXTENSIONS\r
+/**\r
+  Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.\r
+**/\r
 \r
-//\r
-// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
-//\r
 long _InterlockedDecrement(\r
    long * lpAddend\r
 );\r
 \r
 #pragma intrinsic(_InterlockedDecrement)\r
 \r
+/**\r
+  Performs an atomic decrement of an 32-bit unsigned integer.\r
+\r
+  Performs an atomic decrement of the 32-bit unsigned integer specified by\r
+  Value and returns the decrement value. The decrement operation must be\r
+  performed using MP safe mechanisms. The state of the return value is not\r
+  guaranteed to be MP safe.\r
+\r
+  @param  Value A pointer to the 32-bit value to decrement.\r
+\r
+  @return The decrement value.\r
+\r
+**/\r
 UINT32\r
 EFIAPI\r
 InternalSyncDecrement (\r
@@ -32,4 +44,3 @@ InternalSyncDecrement (
   return _InterlockedDecrement (Value);\r
 }\r
 \r
-#endif\r