No description provided.
Use __GNUC_PREREQ for detecting __builtin_expect #579
pull real-or-random wants to merge 1 commits into bitcoin-core:master from real-or-random:builtin-expect changing 2 files +1 −7-
real-or-random commented at 10:49 AM on December 17, 2018: contributor
-
Use __GNUC_PREREQ for detecting __builtin_expect c663397f46
- real-or-random cross-referenced this on Dec 17, 2018 from issue Fix autoconf check for __builtin_expect by real-or-random
-
sipa commented at 6:21 PM on January 17, 2019: contributor
utACK c663397f46152e96c548ba392858c730e132dd7a
-
real-or-random commented at 10:23 AM on February 4, 2019: contributor
By the way, checking for (3,0) is correct because
- GCC 2.95 does not have the builtin: https://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_24.html#cp__
- GCC 3.0.4 has it: https://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_30.html#cp__
-
jonasnick commented at 10:30 AM on February 4, 2019: contributor
utACK c663397f46152e96c548ba392858c730e132dd7a
Replacing
#define EXPECT(x,c) __builtin_expect((x),(c))with#define EXPECT(x,c) (x)works too. - sipa merged this on Feb 4, 2019
- sipa closed this on Feb 4, 2019
- sipa referenced this in commit b408c6a8b2 on Feb 4, 2019
Contributors