This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Call for compiler help/advice: atomic builtins for v3
Richard Henderson wrote:
> I believe some poor design decisions were made for p4 here. But even
> on a platform without such problems you can expect a factor of 30
> difference.
So, that suggests that inlining these operations probably isn't very
profitable. In that case, it seems like we could put these routines
into libgcc, and just have libstdc++ call them. And, that if
__exchange_and_add is showing up on the top of the profile, the fix
probably isn't inlining -- it's to work out a way to make less use of
atomic operations.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304