This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Portability of idiom
- From: Phil Edwards <phil at jaj dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 1 Feb 2002 17:03:05 -0500
- Subject: Re: Portability of idiom
- References: <200201300051.g0U0pq412118@latour.rsch.comm.mot.com> <20020131075052.F5665@cantrip.org> <200202010332.g113WBx55263@latour.rsch.comm.mot.com> <20020201042928.A78575@cantrip.org>
On Fri, Feb 01, 2002 at 04:29:28AM +0000, Nathan Myers wrote:
> 1. In general, the error case doesn't need to be optimal because it had
> better occur only rarely. We do want the (nearly dead) code to be
> smallish, though.
The use of __builtin_expect() is perhaps indicated here.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams