This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Draft patch for libstdc++/20914
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 10 Apr 2005 01:15:11 +0200
- Subject: Re: Draft patch for libstdc++/20914
- References: <425802DF.8080205@suse.de>
Paolo Carlini wrote:
>..................................................... The performance
>should not be measurably affected but the code becomes a little more
>ugly, suggestions for cleaning it up (within the current ABI, of course)
>are of course welcome.
>
Ok, now I know how to do this much better (at least for integers): I
have to factor out from __int_to_char the code that prepends the various
0x, 0X, -, +, etc., and have it only computing the actual digits. Then,
if necessary, doing the grouping on the latter, then, finish up the
result by prepending 0x, 0X, -, +, etc.
In a few days... ;)
Paolo.