]> git.ipfire.org Git - thirdparty/gcc.git/commit
codecvt_members.cc (do_out): If we can upper bound the total number of external chars...
authorPaolo Carlini <pcarlini@suse.de>
Wed, 19 Nov 2003 11:38:40 +0000 (11:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 19 Nov 2003 11:38:40 +0000 (11:38 +0000)
commit1f33554abb31ee66b0b61be508d91d1cafdc4b0b
tree48b77e87f53dc351f35e235fae841c52872e9b68
parentedfe1ac771642d4061ee0767271f4a89861e7b92
codecvt_members.cc (do_out): If we can upper bound the total number of external chars to something smaller...

2003-11-19  Paolo Carlini  <pcarlini@suse.de>

* config/locale/gnu/codecvt_members.cc (do_out): If
we can upper bound the total number of external chars
to something smaller than __to_end - __to, avoid the
temporary buffer, the memcopy and simplify the loop.
* config/locale/generic/codecvt_members.cc (do_out):
Likewise.

From-SVN: r73733
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/codecvt_members.cc
libstdc++-v3/config/locale/gnu/codecvt_members.cc