summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2006-06-29 15:39:53 +0200
committerunknown <serg@serg.mylan>2006-06-29 15:39:53 +0200
commit948caab031ac765d74e36b0dad2452cee1a05e74 (patch)
tree6caa01d28f4377fb975fe7fcfb08fd25f8c8437e /mysys
parentdb98fc9450255d881e2783eb2190029bb164d881 (diff)
downloadmariadb-git-948caab031ac765d74e36b0dad2452cee1a05e74.tar.gz
support for xadd emulation, workaround for Darwin
include/atomic/nolock.h: support for xadd emulation include/atomic/x86-msvc.h: syntax error include/my_atomic.h: support for xadd emulation, cleanup mysys/my_atomic.c: assert
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_atomic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysys/my_atomic.c b/mysys/my_atomic.c
index 21b80f0f6a1..6f56d76e6b8 100644
--- a/mysys/my_atomic.c
+++ b/mysys/my_atomic.c
@@ -36,6 +36,7 @@
*/
int my_atomic_initialize()
{
+ DBUG_ASSERT(sizeof(intptr) == sizeof(void *));
/* currently the only thing worth checking is SMP/UP issue */
#ifdef MY_ATOMIC_MODE_DUMMY
return my_getncpus() == 1 ? MY_ATOMIC_OK : MY_ATOMIC_NOT_1CPU;