[Bug c/26367] multiple levels of __builtin_expect

acahalan at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 20 04:11:00 GMT 2006



------- Comment #4 from acahalan at gmail dot com  2006-02-20 04:11 -------
It's interesting that you say "__builtin_expect gives the same probability on
all targets". I'm not exactly sure what you mean, but I'll guess that you mean
it states that the condition will be true X% of the time.

If so, X should be documented. Also: approximately X% or minimum X%?

BTW, it seems that this X value might not be correct for all architectures. I
guess that would be a different bug though, and the problem may have been fixed
by now.

It would be nice to have more than one level, including at least "100% certain"
and two other levels.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26367



More information about the Gcc-bugs mailing list