This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: exchange_and_add inlined in g++ 4.0.2


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]