← Back to team overview

maria-discuss team mailing list archive

Re: my_atomic_add64

 

Antony T Curtis <atcurtis@xxxxxxx> 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.



References