[Patch] libstdc++/21193 (string & wstring)
Paolo Carlini
pcarlini@suse.de
Tue Jul 12 18:10:00 GMT 2005
Hi,
the below is what I have for string & wstring. The most important
weakness I can see, at the moment, is that the patch is not -pedantic
safe, due to the LL constants: however, the problem seems not so serious
longer term, because eventually those specializations will belong to a
*.cc file. Also, I'm punting (falling back to the current placeholder
implementation) for sizeof(size_t) != 4,8: if needed, would be easy
adding more cases.
About the float, double, long double hashes, in the meanwhile figured
out that the most tricky one is definitely long double, when random
padding bits are very common (e.g. 10 byte -> 12 byte); Float and double
seem efficiently amenable to the treatment suggested by Gaby. For now,
I'm resorting to the frexp approach for long double. I hope to have
something pretty soon.
Tested x86/x86-64-linux. In case of doubts, speak soon... ;)
Paolo.
P.S. This work seems safe for 4.0.2 too.
//////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_21193
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050712/3aa7515a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_21193
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050712/3aa7515a/attachment-0001.ksh>
More information about the Libstdc++
mailing list