VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/InterlockedDecrementMsc.c@ 85788

Last change on this file since 85788 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 897 bytes
Line 
1/** @file
2 InterlockedDecrement function
3
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9/**
10 Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
11**/
12
13long _InterlockedDecrement(
14 long * lpAddend
15);
16
17#pragma intrinsic(_InterlockedDecrement)
18
19/**
20 Performs an atomic decrement of an 32-bit unsigned integer.
21
22 Performs an atomic decrement of the 32-bit unsigned integer specified by
23 Value and returns the decrement value. The decrement operation must be
24 performed using MP safe mechanisms. The state of the return value is not
25 guaranteed to be MP safe.
26
27 @param Value A pointer to the 32-bit value to decrement.
28
29 @return The decrement value.
30
31**/
32UINT32
33EFIAPI
34InternalSyncDecrement (
35 IN volatile UINT32 *Value
36 )
37{
38 return _InterlockedDecrement ((long *)(Value));
39}
40
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette