This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26367] multiple levels of __builtin_expect
- From: "acahalan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2006 04:11:04 -0000
- Subject: [Bug c/26367] multiple levels of __builtin_expect
- References: <bug-26367-12219@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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