fun: programmers are notoriously...
Александр Петросян (PAF) 11.07.2005 15:04
/ 11.07.2005 15:04
- Built-in Function: long __builtin_expect (long exp, long c)
You may use __builtin_expect to provide the compiler with branch prediction information. In general, you should prefer to use actual profile feedback for this (-fprofile-arcs), as
programmers are notoriously bad at predicting how their programs actually perform.
However, there are applications in which this data is hard to collect.
http://www.imodulo.com/GNU/gcc/Other-Builtins.htmlFrom: PAF
Date: Wed, 22 Jun 2005 16:59:01 +0400