Re: [Maria-discuss] my_atomic_add64

2010-08-24 Thread Kristian Nielsen
Antony T Curtis writes: > I think the 80486 introduced the cmp8xchg instruction. It appears you are right. Oleg, it seems that MySQL 5.5 already implements a 64-bit atomic add for 32-bit x86 platforms. Check include/atomic/x86-gcc.h , it uses the cmpxchg8b instruction. - Kristian. __

Re: [Maria-discuss] my_atomic_add64

2010-08-22 Thread Antony T Curtis
I think the 80486 introduced the cmp8xchg instruction. On 17 Aug, 2010, at 9:25 am, Kristian Nielsen wrote: > Oleg Tsarev writes: > >> I need my_atomic_add64 in mysql. >> >> Can i simple add following macros, or i need more advanced tricks? >> >> tsa...@main:/storage/project/percona/rtd_2$ d

Re: [Maria-discuss] my_atomic_add64

2010-08-17 Thread Kristian Nielsen
Kristian Nielsen writes: > I think you'll also need > > make_transparent_unions(32) > #define U_32 int32 > #define Uv_32 int32 Gah. I meant of course this: make_transparent_unions(64) #define U_64 int64 #define Uv_64 int64 - Kristian.

Re: [Maria-discuss] my_atomic_add64

2010-08-17 Thread Kristian Nielsen
Oleg Tsarev writes: > I need my_atomic_add64 in mysql. > > Can i simple add following macros, or i need more advanced tricks? > > tsa...@main:/storage/project/percona/rtd_2$ diff -Nur > ../rtd/c/include/my_atomic.h c/include/my_atomic.h > --- ../rtd/c/include/my_atomic.h2010-07-09 16:35:1

[Maria-discuss] my_atomic_add64

2010-08-17 Thread Oleg Tsarev
Hello, I need my_atomic_add64 in mysql. Can i simple add following macros, or i need more advanced tricks? tsa...@main:/storage/project/percona/rtd_2$ diff -Nur ../rtd/c/include/my_atomic.h c/include/my_atomic.h --- ../rtd/c/include/my_atomic.h2010-07-09 16:35:11.0 +0400 +++ c/in