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: [PATCH] strtoll and strtoull in libiberty (fix: libstdc++/5611)


On Mon, 2002-03-18 at 15:10, Nathan Myers wrote:

> If you're going to include integer-parsing code in the library, why 
> bother with the redundant step of strto-anything?  Why not just build 
> it directly into the implementations of operators >>?  We can avoid
> a lot of rigmarole massaging input and the execution environment to 
> conform to strtoll's needs just by not using it.

But the code should only be used for platforms without native support. 
A fast strtoll implementation is either non-trivial and nont small or it
is dog slow.  The system library will have an optimized implementation
and sharing it is definitely a win due to the size and code (== cache)
reuse value.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


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