-/*\r
- * PROJECT: ReactOS system libraries\r
- * LICENSE: GPL - See COPYING in the top level directory\r
- * FILE: lib/intrlck/i386/exchange.c\r
- * PURPOSE: Inter lock exchanges\r
- * PROGRAMMERS: Copyright 1995 Martin von Loewis\r
- * Copyright 1997 Onno Hovers\r
- */\r
-\r
-/************************************************************************\r
- * InterlockedExchange\r
- *\r
- * Atomically exchanges a pair of values.\r
- *\r
- * RETURNS\r
- * Prior value of value pointed to by Target\r
- */\r
-\r
-/*\r
- * LONG NTAPI InterlockedExchange(LPLONG target, LONG value)\r
- */\r
-\r
-#include <windows.h>\r
-LONG\r
-NTAPI\r
-InterlockedExchange(LPLONG target, LONG value)\r
-{\r
- LONG ret;\r
- __asm__ (\r
- /* lock for SMP systems */\r
- "lock\n\txchgl %0,(%1)"\r
- :"=r" (ret):"r" (target), "0" (value):"memory" );\r
- return ret;\r
-}\r
+/*
+ * PROJECT: ReactOS system libraries
+ * LICENSE: GPL - See COPYING in the top level directory
+ * FILE: lib/intrlck/i386/exchange.c
+ * PURPOSE: Inter lock exchanges
+ * PROGRAMMERS: Copyright 1995 Martin von Loewis
+ * Copyright 1997 Onno Hovers
+ */
+
+/************************************************************************
+ * InterlockedExchange
+ *
+ * Atomically exchanges a pair of values.
+ *
+ * RETURNS
+ * Prior value of value pointed to by Target
+ */
+
+/*
+ * LONG NTAPI InterlockedExchange(LPLONG target, LONG value)
+ */
+
+#include <windows.h>
+LONG
+NTAPI
+InterlockedExchange(LPLONG target, LONG value)
+{
+ LONG ret;
+ __asm__ (
+ /* lock for SMP systems */
+ "lock\n\txchgl %0,(%1)"
+ :"=r" (ret):"r" (target), "0" (value):"memory" );
+ return ret;
+}