aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-10-30 12:17:27 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-10-30 12:17:27 +0000
commit3a4673e047f81c37a1cc8b7436d2e5e5075c3f9e (patch)
tree3853865232197a95da4d76fc1cba5e25ee117581 /gcc/doc
parent7958186bea8d900b8e876f80c2b089581e717cdc (diff)
downloadgcc-3a4673e047f81c37a1cc8b7436d2e5e5075c3f9e.zip
gcc-3a4673e047f81c37a1cc8b7436d2e5e5075c3f9e.tar.gz
gcc-3a4673e047f81c37a1cc8b7436d2e5e5075c3f9e.tar.bz2
Fix __builtin_expect_with_probability documentation
* doc/extend.texi: Fix prototype and description of __builtin_expect_with_probability. From-SVN: r265622
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 8772f3a..4dbb2da 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -12025,12 +12025,12 @@ when testing pointer or floating-point values.
@end deftypefn
@deftypefn {Built-in Function} long __builtin_expect_with_probability
-(long @var{exp}, long @var{c}, long @var{probability})
+(long @var{exp}, long @var{c}, double @var{probability})
-The built-in has same semantics as @code{__builtin_expect},
-but user can provide expected probability (in percent) for value of @var{exp}.
-Last argument @var{probability} is of float type and valid values
-are in inclusive range 0.0f and 1.0f.
+This function has the same semantics as @code{__builtin_expect},
+but the caller provides the expected probability that @var{exp} == @var{c}.
+The last argument, @var{probability}, is a floating-point value in the
+range 0.0 to 1.0, inclusive.
@end deftypefn
@deftypefn {Built-in Function} void __builtin_trap (void)