[Patch] Add performance/filebuf_copy.cc
Nathan Myers
ncm-nospam@cantrip.org
Thu Jun 26 12:37:00 GMT 2003
On Thu, Jun 26, 2003 at 02:10:20PM +0200, Paolo Carlini wrote:
> Hi,
>
> this is Nathan's nice testcase of a couple of days ago adapted
> to our performance framework.
>
> If nobody disagree will add very soon!
Let's make some small changes first:
> + const unsigned long count = 1ul << 28;
const unsigned long count = 1ul << 30;
> + int c = getc_unlocked(fpi);
> + if (c != EOF) {
> + putc_unlocked(c, fpo);
> + }
int c = getc_unlocked(fpi);
if (c == EOF || putc_unlocked(c, fpo) == EOF)
break;
> + int c = in.sbumpc();
> + if (c != EOF) {
> + out.sputc(c);
> + }
int c = in.sbumpc();
if (c == EOF || out.sputc(c) == EOF)
break
(blushing)
Nathan Myers
ncm-nospam@cantrip.org
More information about the Libstdc++
mailing list