diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-11-02 15:30:01 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-12-13 16:38:20 +0400 |
commit | bb9928160fce03c64bbf753e7eafbdbd95255110 (patch) | |
tree | 656c8d590608b08dbbb6cfc1056b472a252f0f56 /include/my_atomic.h | |
parent | 8f9999b5fc658431cac66cf07b51b3f469faa20a (diff) | |
download | mariadb-git-bb9928160fce03c64bbf753e7eafbdbd95255110.tar.gz |
MDEV-11212 - Clean-up MariaDB atomic operations
Removed MY_ATOMIC_HAS_8_16: never defined.
Diffstat (limited to 'include/my_atomic.h')
-rw-r--r-- | include/my_atomic.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/my_atomic.h b/include/my_atomic.h index 8c468e295d3..5e576002e2a 100644 --- a/include/my_atomic.h +++ b/include/my_atomic.h @@ -99,17 +99,9 @@ MY_MEMORY_ORDER_SEQ_CST - The operation has the same semantics as acquire-release operation, and additionally has sequentially-consistent operation ordering. - - 8- and 16-bit atomics aren't implemented for windows (see generic-msvc.h), - but can be added, if necessary. */ #define intptr void * -/** - Currently we don't support 8-bit and 16-bit operations. - It can be added later if needed. -*/ -#undef MY_ATOMIC_HAS_8_16 /* We choose implementation as follows: @@ -253,41 +245,21 @@ static inline void my_atomic_store ## S( \ make_atomic_store_body(S); \ } -#ifdef MY_ATOMIC_HAS_8_16 -make_atomic_cas(8) -make_atomic_cas(16) -#endif make_atomic_cas(32) make_atomic_cas(64) make_atomic_cas(ptr) -#ifdef MY_ATOMIC_HAS_8_16 -make_atomic_add(8) -make_atomic_add(16) -#endif make_atomic_add(32) make_atomic_add(64) -#ifdef MY_ATOMIC_HAS_8_16 -make_atomic_load(8) -make_atomic_load(16) -#endif make_atomic_load(32) make_atomic_load(64) make_atomic_load(ptr) -#ifdef MY_ATOMIC_HAS_8_16 -make_atomic_fas(8) -make_atomic_fas(16) -#endif make_atomic_fas(32) make_atomic_fas(64) make_atomic_fas(ptr) -#ifdef MY_ATOMIC_HAS_8_16 -make_atomic_store(8) -make_atomic_store(16) -#endif make_atomic_store(32) make_atomic_store(64) make_atomic_store(ptr) |