Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Mathewson
Tor
Commits
5e582c7f
Commit
5e582c7f
authored
Oct 15, 2018
by
Nick Mathewson
🏃
Browse files
Explain a bit more about branch prediction in the unit-test case
parent
bb465be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/common/util_bug.h
View file @
5e582c7f
...
...
@@ -38,6 +38,10 @@
* and then passed right to a conditional. If you do anything else to the
* expression here, or introduce any more parentheses, the compiler won't
* help you.
*
* We only do this for the unit-test build case because it interferes with
* the likely-branch labeling. Note below that in the other case, we define
* these macros to just be synonyms for PREDICT_(UN)LIKELY.
*/
#define ASSERT_PREDICT_UNLIKELY_(e) \
({ \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment