]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/atomic-cl-32.hpp
webapps.wiki: adding search bar
[factor.git] / vm / atomic-cl-32.hpp
index a4b6af8a4f32942a34bf0d2acea114f8736b17a9..d3983ef6f4a6518eb28027910e9ff66a254215b1 100644 (file)
@@ -15,21 +15,21 @@ __forceinline static bool cas(volatile fixnum* ptr, fixnum old_val,
 }
 
 __forceinline static cell fetch_add(volatile cell* ptr, cell val) {
-  return (cell)
-      InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr), (LONG) val);
+  return (cell)InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
+                                      (LONG) val);
 }
 __forceinline static fixnum fetch_add(volatile fixnum* ptr, fixnum val) {
-  return (fixnum)
-      InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr), (LONG) val);
+  return (fixnum)InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
+                                        (LONG) val);
 }
 
 __forceinline static cell fetch_subtract(volatile cell* ptr, cell val) {
-  return (cell) InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
-                                       -(LONG) val);
+  return (cell)InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
+                                      -(LONG)val);
 }
 __forceinline static fixnum fetch_subtract(volatile fixnum* ptr, fixnum val) {
-  return (fixnum) InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
-                                         -(LONG) val);
+  return (fixnum)InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
+                                        -(LONG)val);
 }
 
 __forceinline static void fence() { MemoryBarrier(); }