We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f4665 commit f3acd38Copy full SHA for f3acd38
include/boost/json/detail/config.hpp
@@ -79,19 +79,11 @@
79
#endif
80
81
#ifndef BOOST_JSON_LIKELY
82
-# if defined(__GNUC__) || defined(__clang__)
83
-# define BOOST_JSON_LIKELY(x) __builtin_expect(!!(x), 1)
84
-# else
85
-# define BOOST_JSON_LIKELY(x) x
86
-# endif
+# define BOOST_JSON_LIKELY(x) BOOST_LIKELY( !!(x) )
87
88
89
#ifndef BOOST_JSON_UNLIKELY
90
91
-# define BOOST_JSON_UNLIKELY(x) __builtin_expect(!!(x), 0)
92
93
-# define BOOST_JSON_UNLIKELY(x) x
94
+# define BOOST_JSON_UNLIKELY(x) BOOST_UNLIKELY( !!(x) )
95
96
97
#ifndef BOOST_JSON_UNREACHABLE
0 commit comments