exchange_and_add inlined in g++ 4.0.2
Paolo Carlini
pcarlini@suse.de
Mon Nov 7 12:53:00 GMT 2005
bert hubert wrote:
>>I don't think you can do much without recompiling libstdc++-v3, if you
>>want something clean and not dirty tricks... Consider that inside the
>>library there are also instantiations of string and wstring.
>>
>>
>Ah yes. But not that much though, I think.
>
>
I would suggest getting ahold of the sources, then replace the
config/cpu/os/atomicity.h bits with the config/cpu/generic/atomicity.h
without the mutexes. 5 minutes of work. And rebuild and benchmark. That
will give you a precise idea of what we can obtain if we prepare a
configuration option as per you PR request.
Paolo.
More information about the Libstdc++
mailing list