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: [RFC] Speeding-up the parsing of integer types


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


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