This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Speeding-up the parsing of integer types
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Benjamin Kosnik <bkoz at redhat dot com>, Nathan Myers <ncm at cantrip dot org>
- Date: 04 Dec 2003 17:03:35 +0100
- Subject: Re: [RFC] Speeding-up the parsing of integer types
- Organization: Integrable Solutions
- References: <3FCF52EF.7020302@suse.de>
Paolo Carlini <pcarlini@suse.de> writes:
| It seems to me that we could rather easily put inside _M_extract_int
| something like:
|
| __value = __value * __base + (__c - '0');
I think the idea, in general, is good. I think you may also want to
perform various checks for overflow and all that before storing in __value.
-- Gaby