
8 Jul
2006
8 Jul
'06
3:56 p.m.
Michael van der Westhuizen wrote:
Hi Peter,
On 7/8/06, Peter Dimov <pdimov@mmltd.net> wrote:
Thanks. I've attached my current version of sp_counted_base_gcc_sparc.hpp. Does it look correct to you?
compare_and_swap certainly looks correct.
atomic_fetch_and_add and atomic_conditional_increment both call compare_exchange, which does not exist in this file - are they meant to call compare_and_swap?
Yes indeed. I've attached a fixed version.
I like the use of __builtin_expect - I didn't know that existed!
Credit for that goes to Piotr Wyderski, the author of the original. :-)