This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: testandset on powerpc
- To: aj at suse dot de
- Subject: Re: testandset on powerpc
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Tue, 18 Jul 2000 18:22:07 +0200
- CC: geoffk at cygnus dot com, libc-alpha at sourceware dot cygnus dot com
- References: <ho66q3vbfb.fsf@maclaurin.suse.de><200007181528.IAA12286@localhost.cygnus.com><hok8ejtpgy.fsf@maclaurin.suse.de><200007181552.IAA12307@localhost.cygnus.com> <hobszvtoji.fsf@maclaurin.suse.de>
From: Andreas Jaeger <aj@suse.de>
Date: 18 Jul 2000 18:02:09 +0200
Since testandset is a specialisation it can be optimized - and that
seems to be the reason why testandset is used here instead of
compare_and_swap.
So what's the right thing to do?
- Add some define like HAS_TESTANDSET and implement testandset with
compare_and_swap if testandset is not available?
- Remove testandset completly?
Please keep testandset. The i386 has no compare_and_swap, but does
have testandset.
Mark