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.
__
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
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.
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
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
5 matches
Mail list logo