ruby-changes:51940
From: shyouhei <ko1@a...>
Date: Wed, 1 Aug 2018 11:55:16 +0900 (JST)
Subject: [ruby-changes:51940] shyouhei:r64155 (trunk): (cosmetic) add blank lines for better readability
shyouhei 2018-08-01 11:55:11 +0900 (Wed, 01 Aug 2018) New Revision: 64155 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64155 Log: (cosmetic) add blank lines for better readability Modified files: trunk/ruby_atomic.h Index: ruby_atomic.h =================================================================== --- ruby_atomic.h (revision 64154) +++ ruby_atomic.h (revision 64155) @@ -146,12 +146,15 @@ ruby_atomic_size_exchange(size_t *ptr, s https://github.com/ruby/ruby/blob/trunk/ruby_atomic.h#L146 #ifndef ATOMIC_SIZE_INC # define ATOMIC_SIZE_INC(var) ATOMIC_INC(var) #endif + #ifndef ATOMIC_SIZE_DEC # define ATOMIC_SIZE_DEC(var) ATOMIC_DEC(var) #endif + #ifndef ATOMIC_SIZE_EXCHANGE # define ATOMIC_SIZE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val) #endif + #ifndef ATOMIC_SIZE_CAS # define ATOMIC_SIZE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val) #endif @@ -160,6 +163,7 @@ ruby_atomic_size_exchange(size_t *ptr, s https://github.com/ruby/ruby/blob/trunk/ruby_atomic.h#L163 # ifndef ATOMIC_PTR_EXCHANGE # define ATOMIC_PTR_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val) # endif + # ifndef ATOMIC_PTR_CAS # define ATOMIC_PTR_CAS(var, oldval, newval) ATOMIC_CAS(var, oldval, newval) # endif @@ -167,6 +171,7 @@ ruby_atomic_size_exchange(size_t *ptr, s https://github.com/ruby/ruby/blob/trunk/ruby_atomic.h#L171 # ifndef ATOMIC_VALUE_EXCHANGE # define ATOMIC_VALUE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val) # endif + # ifndef ATOMIC_VALUE_CAS # define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val) # endif @@ -186,6 +191,7 @@ ruby_atomic_ptr_exchange(const void **pt https://github.com/ruby/ruby/blob/trunk/ruby_atomic.h#L191 } # endif #endif + #ifndef ATOMIC_PTR_CAS # if SIZEOF_VOIDP == SIZEOF_SIZE_T # define ATOMIC_PTR_CAS(var, oldval, val) (void *)ATOMIC_SIZE_CAS(*(size_t *)&(var), (size_t)(oldval), (size_t)(val)) @@ -215,6 +221,7 @@ ruby_atomic_value_exchange(VALUE *ptr, V https://github.com/ruby/ruby/blob/trunk/ruby_atomic.h#L221 } # endif #endif + #ifndef ATOMIC_VALUE_CAS # if SIZEOF_VALUE == SIZEOF_SIZE_T # define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_SIZE_CAS(*(size_t *)&(var), (size_t)(oldval), (size_t)(val)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/