]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: Refactor atomic.hpp to Factor style
authorErik Charlebois <erikcharlebois@gmail.com>
Sun, 12 May 2013 01:43:20 +0000 (21:43 -0400)
committerErik Charlebois <erikcharlebois@gmail.com>
Sun, 12 May 2013 17:24:41 +0000 (13:24 -0400)
vm/atomic.hpp

index e0bcb5092bcaf636ccc3029a6e641e30653674fc..a8b27237207f0c1db7a19f16aa14930aee2403a9 100644 (file)
@@ -1,27 +1,23 @@
 namespace factor {
-       namespace atomic {
-               FACTOR_FORCE_INLINE static cell load(volatile cell *ptr)
-               {
-                       atomic::fence();
-                       return *ptr;
-               }
+namespace atomic {
+FACTOR_FORCE_INLINE static cell load(volatile cell* ptr) {
+  atomic::fence();
+  return *ptr;
+}
 
-               FACTOR_FORCE_INLINE static fixnum load(volatile fixnum *ptr)
-               {
-                       atomic::fence();
-                       return *ptr;
-               }
+FACTOR_FORCE_INLINE static fixnum load(volatile fixnum* ptr) {
+  atomic::fence();
+  return *ptr;
+}
 
-               FACTOR_FORCE_INLINE static void store(volatile cell *ptr, cell val)
-               {
-                       *ptr = val;
-                       atomic::fence();
-               }
+FACTOR_FORCE_INLINE static void store(volatile cell* ptr, cell val) {
+  *ptr = val;
+  atomic::fence();
+}
 
-               FACTOR_FORCE_INLINE static void store(volatile fixnum *ptr, fixnum val)
-               {
-                       *ptr = val;
-                       atomic::fence();
-               }
-       }
+FACTOR_FORCE_INLINE static void store(volatile fixnum* ptr, fixnum val) {
+  *ptr = val;
+  atomic::fence();
+}
+}
 }