mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
(cosmetic) add blank lines for better readability
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fa98c12956
commit
740a1706c8
1 changed files with 7 additions and 0 deletions
|
@ -146,12 +146,15 @@ ruby_atomic_size_exchange(size_t *ptr, size_t val)
|
||||||
#ifndef ATOMIC_SIZE_INC
|
#ifndef ATOMIC_SIZE_INC
|
||||||
# define ATOMIC_SIZE_INC(var) ATOMIC_INC(var)
|
# define ATOMIC_SIZE_INC(var) ATOMIC_INC(var)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATOMIC_SIZE_DEC
|
#ifndef ATOMIC_SIZE_DEC
|
||||||
# define ATOMIC_SIZE_DEC(var) ATOMIC_DEC(var)
|
# define ATOMIC_SIZE_DEC(var) ATOMIC_DEC(var)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATOMIC_SIZE_EXCHANGE
|
#ifndef ATOMIC_SIZE_EXCHANGE
|
||||||
# define ATOMIC_SIZE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
# define ATOMIC_SIZE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATOMIC_SIZE_CAS
|
#ifndef ATOMIC_SIZE_CAS
|
||||||
# define ATOMIC_SIZE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
|
# define ATOMIC_SIZE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
|
||||||
#endif
|
#endif
|
||||||
|
@ -160,6 +163,7 @@ ruby_atomic_size_exchange(size_t *ptr, size_t val)
|
||||||
# ifndef ATOMIC_PTR_EXCHANGE
|
# ifndef ATOMIC_PTR_EXCHANGE
|
||||||
# define ATOMIC_PTR_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
# define ATOMIC_PTR_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifndef ATOMIC_PTR_CAS
|
# ifndef ATOMIC_PTR_CAS
|
||||||
# define ATOMIC_PTR_CAS(var, oldval, newval) ATOMIC_CAS(var, oldval, newval)
|
# define ATOMIC_PTR_CAS(var, oldval, newval) ATOMIC_CAS(var, oldval, newval)
|
||||||
# endif
|
# endif
|
||||||
|
@ -167,6 +171,7 @@ ruby_atomic_size_exchange(size_t *ptr, size_t val)
|
||||||
# ifndef ATOMIC_VALUE_EXCHANGE
|
# ifndef ATOMIC_VALUE_EXCHANGE
|
||||||
# define ATOMIC_VALUE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
# define ATOMIC_VALUE_EXCHANGE(var, val) ATOMIC_EXCHANGE(var, val)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifndef ATOMIC_VALUE_CAS
|
# ifndef ATOMIC_VALUE_CAS
|
||||||
# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
|
# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_CAS(var, oldval, val)
|
||||||
# endif
|
# endif
|
||||||
|
@ -186,6 +191,7 @@ ruby_atomic_ptr_exchange(const void **ptr, const void *val)
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATOMIC_PTR_CAS
|
#ifndef ATOMIC_PTR_CAS
|
||||||
# if SIZEOF_VOIDP == SIZEOF_SIZE_T
|
# 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))
|
# 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, VALUE val)
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATOMIC_VALUE_CAS
|
#ifndef ATOMIC_VALUE_CAS
|
||||||
# if SIZEOF_VALUE == SIZEOF_SIZE_T
|
# 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))
|
# define ATOMIC_VALUE_CAS(var, oldval, val) ATOMIC_SIZE_CAS(*(size_t *)&(var), (size_t)(oldval), (size_t)(val))
|
||||||
|
|
Loading…
Reference in a new issue