std::max/min optimization

Ulrich Drepper drepper@redhat.com
Wed Nov 26 18:17:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nathan Myers wrote:

> Summing over all the programs that are actually run, 
> which produces a better overall result?

Completely irrelevant.  You say it yourself:

> on the assumption that
> users who care most about performance are using fast machines.

The fastest code for the fastest machine is generated with by gcc using
the plain old a > b ? a : b code.

- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/xO4f2ijCOnn/RHQRAhCUAJ4kR2UncRqwrn8KZNaO/9/HqzQ3xgCfQ8PL
WKxE5pVT4H4i23iBm6/2GsA=
=gLSS
-----END PGP SIGNATURE-----



More information about the Libstdc++ mailing list