Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/ic



On Mon, Mar 01, 2010 at 12:28:17AM +0900, Izumi Tsutsui wrote:
> > Eh ???
> >     if (foo) bar(); else baz();
> > will probably execute faster than:
> >     (*bar_baz)();
> > since the indirect jump is (IIRC) always unpredicted.
> 
> What do you have to predict on unconditional branches?

The branch destination. E.g. the CPU can't start prefetching from the
bar().

Joerg


Home | Main Index | Thread Index | Old Index