Author: tkreuzer
Date: Mon Feb 16 21:57:45 2009
New Revision: 39637
URL:
http://svn.reactos.org/svn/reactos?rev=39637&view=rev
Log:
fix formatting
Modified:
trunk/reactos/lib/rtl/powerpc/interlocked.c
Modified: trunk/reactos/lib/rtl/powerpc/interlocked.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/powerpc/interlocke…
==============================================================================
--- trunk/reactos/lib/rtl/powerpc/interlocked.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/powerpc/interlocked.c [iso-8859-1] Mon Feb 16 21:57:45 2009
@@ -7,7 +7,8 @@
NTKERNELAPI
LONG
FASTCALL
-InterlockedExchange(LONG volatile *Target, LONG Value)
+InterlockedExchange(
+ LONG volatile *Target, LONG Value)
{
return _InterlockedExchange(Target, Value);
}
@@ -15,7 +16,8 @@
NTKERNELAPI
LONG
FASTCALL
-InterlockedExchangeAdd(LONG volatile *Target, LONG Value)
+InterlockedExchangeAdd(
+ LONG volatile *Target, LONG Value)
{
return _InterlockedExchangeAdd(Target, Value);
}
@@ -23,8 +25,9 @@
NTKERNELAPI
LONG
WINAPI
-InterlockedCompareExchange
-(LONG volatile *Destination, LONG Exchange, LONG Comparand)
+InterlockedCompareExchange(
+ LONG volatile *Destination,
+ LONG Exchange, LONG Comparand)
{
return _InterlockedCompareExchange(Destination, Exchange, Comparand);
}
@@ -41,13 +44,16 @@
NTKERNELAPI
LONG
FASTCALL
-InterlockedDecrement
-(IN OUT LONG volatile *Addend)
+InterlockedDecrement(
+ IN OUT LONG volatile *Addend)
{
return _InterlockedDecrement(Addend);
}
-PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER ListHead)
+PSLIST_ENTRY
+WINAPI
+InterlockedPopEntrySList(
+ PSLIST_HEADER ListHead)
{
PSLIST_ENTRY Result = NULL;
KIRQL OldIrql;
@@ -56,15 +62,15 @@
if(!GLLInit)
{
- KeInitializeSpinLock(&GlobalListLock);
- GLLInit = TRUE;
+ KeInitializeSpinLock(&GlobalListLock);
+ GLLInit = TRUE;
}
KeAcquireSpinLock(&GlobalListLock, &OldIrql);
if(ListHead->Next.Next)
{
- Result = ListHead->Next.Next;
- ListHead->Next.Next = Result->Next;
+ Result = ListHead->Next.Next;
+ ListHead->Next.Next = Result->Next;
}
KeReleaseSpinLock(&GlobalListLock, OldIrql);
return Result;
@@ -73,22 +79,20 @@
NTKERNELAPI
PSLIST_ENTRY
FASTCALL
-InterlockedPushEntrySList
-(IN PSLIST_HEADER ListHead,
- IN PSLIST_ENTRY ListEntry)
+InterlockedPushEntrySList(
+ IN PSLIST_HEADER ListHead,
+ IN PSLIST_ENTRY ListEntry)
{
PVOID PrevValue;
do
{
- PrevValue = ListHead->Next.Next;
- ListEntry->Next = PrevValue;
+ PrevValue = ListHead->Next.Next;
+ ListEntry->Next = PrevValue;
}
- while
- (InterlockedCompareExchangePointer
- (&ListHead->Next.Next,
- ListEntry,
- PrevValue) != PrevValue);
+ while (InterlockedCompareExchangePointer(&ListHead->Next.Next,
+ ListEntry,
+ PrevValue) != PrevValue);
return (PSLIST_ENTRY)PrevValue;
}
@@ -96,9 +100,9 @@
NTKERNELAPI
VOID
FASTCALL
-ExInterlockedAddLargeStatistic
-(IN PLARGE_INTEGER Addend,
- IN ULONG Increment)
+ExInterlockedAddLargeStatistic(
+ IN PLARGE_INTEGER Addend,
+ IN ULONG Increment)
{
_InterlockedAddLargeStatistic(&Addend->QuadPart, Increment);
}
@@ -107,10 +111,10 @@
LONGLONG
FASTCALL
ExInterlockedCompareExchange64(
- IN OUT PLONGLONG Destination,
- IN PLONGLONG Exchange,
- IN PLONGLONG Comparand,
- IN PKSPIN_LOCK Lock)
+ IN OUT PLONGLONG Destination,
+ IN PLONGLONG Exchange,
+ IN PLONGLONG Comparand,
+ IN PKSPIN_LOCK Lock)
{
KIRQL OldIrql;
LONGLONG Result;
@@ -118,7 +122,7 @@
KeAcquireSpinLock(Lock, &OldIrql);
Result = *Destination;
if(*Destination == Result)
- *Destination = *Exchange;
+ *Destination = *Exchange;
KeReleaseSpinLock(Lock, OldIrql);
return Result;
}