OSDN Git Service

2004-09-13 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Sep 2004 22:21:34 +0000 (22:21 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Sep 2004 22:21:34 +0000 (22:21 +0000)
commit84860738349c884bfa028c398576d9081bebe0b9
tree8997f3bc677ca038f84fb3bcc2ce4cfd4abbc203
parent539941347b041263fc8fbf3ec40f59d2666ba87b
2004-09-13  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/11722
* include/std/std_fstream.h (xsgetn): Declare only.
* include/bits/fstream.tcc (xsgetn): Define, optimize for the
always_noconv() case: when __n > __buflen, copy the available
buffer and issue a direct read.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.

* include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
conditional.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87453 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/std/std_fstream.h
libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc [new file with mode: 0644]