MdePkg: Apply uncrustify changes
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>
This commit is contained in:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -7,8 +7,6 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Performs an atomic increment of an 32-bit unsigned integer.
|
||||
|
||||
@@ -24,7 +22,7 @@
|
||||
UINT32
|
||||
EFIAPI
|
||||
InternalSyncIncrement (
|
||||
IN volatile UINT32 *Value
|
||||
IN volatile UINT32 *Value
|
||||
)
|
||||
{
|
||||
UINT32 Result;
|
||||
@@ -39,12 +37,11 @@ InternalSyncIncrement (
|
||||
: // no inputs that aren't also outputs
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
);
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Performs an atomic decrement of an 32-bit unsigned integer.
|
||||
|
||||
@@ -60,10 +57,10 @@ InternalSyncIncrement (
|
||||
UINT32
|
||||
EFIAPI
|
||||
InternalSyncDecrement (
|
||||
IN volatile UINT32 *Value
|
||||
IN volatile UINT32 *Value
|
||||
)
|
||||
{
|
||||
UINT32 Result;
|
||||
UINT32 Result;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"movl $-1, %%eax \n\t"
|
||||
@@ -75,12 +72,11 @@ InternalSyncDecrement (
|
||||
: // no inputs that aren't also outputs
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
);
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Performs an atomic compare exchange operation on a 16-bit unsigned integer.
|
||||
|
||||
@@ -102,9 +98,9 @@ InternalSyncDecrement (
|
||||
UINT16
|
||||
EFIAPI
|
||||
InternalSyncCompareExchange16 (
|
||||
IN OUT volatile UINT16 *Value,
|
||||
IN UINT16 CompareValue,
|
||||
IN UINT16 ExchangeValue
|
||||
IN OUT volatile UINT16 *Value,
|
||||
IN UINT16 CompareValue,
|
||||
IN UINT16 ExchangeValue
|
||||
)
|
||||
{
|
||||
__asm__ __volatile__ (
|
||||
@@ -115,12 +111,11 @@ InternalSyncCompareExchange16 (
|
||||
: "r" (ExchangeValue) // %2
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
);
|
||||
|
||||
return CompareValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Performs an atomic compare exchange operation on a 32-bit unsigned integer.
|
||||
|
||||
@@ -142,9 +137,9 @@ InternalSyncCompareExchange16 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
InternalSyncCompareExchange32 (
|
||||
IN OUT volatile UINT32 *Value,
|
||||
IN UINT32 CompareValue,
|
||||
IN UINT32 ExchangeValue
|
||||
IN OUT volatile UINT32 *Value,
|
||||
IN UINT32 CompareValue,
|
||||
IN UINT32 ExchangeValue
|
||||
)
|
||||
{
|
||||
__asm__ __volatile__ (
|
||||
@@ -155,12 +150,11 @@ InternalSyncCompareExchange32 (
|
||||
: "r" (ExchangeValue) // %2
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
);
|
||||
|
||||
return CompareValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Performs an atomic compare exchange operation on a 64-bit unsigned integer.
|
||||
|
||||
@@ -181,9 +175,9 @@ InternalSyncCompareExchange32 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
InternalSyncCompareExchange64 (
|
||||
IN OUT volatile UINT64 *Value,
|
||||
IN UINT64 CompareValue,
|
||||
IN UINT64 ExchangeValue
|
||||
IN OUT volatile UINT64 *Value,
|
||||
IN UINT64 CompareValue,
|
||||
IN UINT64 ExchangeValue
|
||||
)
|
||||
{
|
||||
__asm__ __volatile__ (
|
||||
@@ -194,7 +188,7 @@ InternalSyncCompareExchange64 (
|
||||
: "r" (ExchangeValue) // %2
|
||||
: "memory",
|
||||
"cc"
|
||||
);
|
||||
);
|
||||
|
||||
return CompareValue;
|
||||
}
|
||||
|
@@ -11,11 +11,12 @@
|
||||
Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
|
||||
**/
|
||||
|
||||
__int16 _InterlockedCompareExchange16(
|
||||
__int16 volatile * Destination,
|
||||
__int16 Exchange,
|
||||
__int16 Comperand
|
||||
);
|
||||
__int16
|
||||
_InterlockedCompareExchange16 (
|
||||
__int16 volatile *Destination,
|
||||
__int16 Exchange,
|
||||
__int16 Comperand
|
||||
);
|
||||
|
||||
#pragma intrinsic(_InterlockedCompareExchange16)
|
||||
|
||||
@@ -38,11 +39,10 @@ __int16 _InterlockedCompareExchange16(
|
||||
UINT16
|
||||
EFIAPI
|
||||
InternalSyncCompareExchange16 (
|
||||
IN volatile UINT16 *Value,
|
||||
IN UINT16 CompareValue,
|
||||
IN UINT16 ExchangeValue
|
||||
IN volatile UINT16 *Value,
|
||||
IN UINT16 CompareValue,
|
||||
IN UINT16 ExchangeValue
|
||||
)
|
||||
{
|
||||
return _InterlockedCompareExchange16 (Value, ExchangeValue, CompareValue);
|
||||
}
|
||||
|
||||
|
@@ -10,11 +10,12 @@
|
||||
Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
|
||||
**/
|
||||
|
||||
long _InterlockedCompareExchange(
|
||||
long volatile * Destination,
|
||||
long Exchange,
|
||||
long Comperand
|
||||
);
|
||||
long
|
||||
_InterlockedCompareExchange (
|
||||
long volatile *Destination,
|
||||
long Exchange,
|
||||
long Comperand
|
||||
);
|
||||
|
||||
#pragma intrinsic(_InterlockedCompareExchange)
|
||||
|
||||
@@ -38,11 +39,10 @@ long _InterlockedCompareExchange(
|
||||
UINT32
|
||||
EFIAPI
|
||||
InternalSyncCompareExchange32 (
|
||||
IN volatile UINT32 *Value,
|
||||
IN UINT32 CompareValue,
|
||||
IN UINT32 ExchangeValue
|
||||
IN volatile UINT32 *Value,
|
||||
IN UINT32 CompareValue,
|
||||
IN UINT32 ExchangeValue
|
||||
)
|
||||
{
|
||||
return _InterlockedCompareExchange (Value, ExchangeValue, CompareValue);
|
||||
}
|
||||
|
||||
|
@@ -10,11 +10,12 @@
|
||||
Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
|
||||
**/
|
||||
|
||||
__int64 _InterlockedCompareExchange64(
|
||||
__int64 volatile * Destination,
|
||||
__int64 Exchange,
|
||||
__int64 Comperand
|
||||
);
|
||||
__int64
|
||||
_InterlockedCompareExchange64 (
|
||||
__int64 volatile *Destination,
|
||||
__int64 Exchange,
|
||||
__int64 Comperand
|
||||
);
|
||||
|
||||
#pragma intrinsic(_InterlockedCompareExchange64)
|
||||
|
||||
@@ -37,11 +38,10 @@ __int64 _InterlockedCompareExchange64(
|
||||
UINT64
|
||||
EFIAPI
|
||||
InternalSyncCompareExchange64 (
|
||||
IN volatile UINT64 *Value,
|
||||
IN UINT64 CompareValue,
|
||||
IN UINT64 ExchangeValue
|
||||
IN volatile UINT64 *Value,
|
||||
IN UINT64 CompareValue,
|
||||
IN UINT64 ExchangeValue
|
||||
)
|
||||
{
|
||||
return _InterlockedCompareExchange64 (Value, ExchangeValue, CompareValue);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user