summaryrefslogtreecommitdiff
path: root/ruby_atomic.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 07:30:44 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 07:30:44 (GMT)
commitb3377eaa1360a89db3adb655c1412b80ae5bc2e4 (patch)
tree1a3bba51379b3c81dfa382dacf64853f27ab7633 /ruby_atomic.h
parent303cd88d408b7f8b79b0580cf3d552d6e291f5df (diff)
Revert r52995
revert slow atomic operations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_atomic.h')
-rw-r--r--ruby_atomic.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/ruby_atomic.h b/ruby_atomic.h
index 52b93ef..4bc9f37 100644
--- a/ruby_atomic.h
+++ b/ruby_atomic.h
@@ -42,7 +42,6 @@ typedef unsigned int rb_atomic_t; /* Anything OK */
#pragma intrinsic(_InterlockedOr)
#endif
typedef LONG rb_atomic_t;
-#define SIZEOF_ATOMIC_T SIZEOF_LONG
# define ATOMIC_SET(var, val) InterlockedExchange(&(var), (val))
# define ATOMIC_INC(var) InterlockedIncrement(&(var))
@@ -144,10 +143,6 @@ ruby_atomic_size_exchange(size_t *ptr, size_t val)
}
#endif
-#ifndef SIZEOF_ATOMIC_T
-#define SIZEOF_ATOMIC_T SIZEOF_INT
-#endif
-
#ifndef ATOMIC_SIZE_INC
# define ATOMIC_SIZE_INC(var) ATOMIC_INC(var)
#endif