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
Rob Latham
MPICH-BlueGene
Commits
7a662589
Commit
7a662589
authored
Jul 17, 2013
by
Pavan Balaji
Browse files
Better likely/unlikely hints to MPI.
This covers a small part of ticket #1835.
parent
d2cb6667
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/include/mpihandlemem.h
View file @
7a662589
...
...
@@ -329,7 +329,7 @@ typedef OPA_int_t MPIU_Handle_ref_count;
#define MPIU_Object_add_ref(objptr_) \
do { \
int handle_kind_ = HANDLE_GET_KIND((objptr_)->handle); \
if (handle_kind_ != HANDLE_KIND_BUILTIN) {
\
if
(unlikely
(handle_kind_ != HANDLE_KIND_BUILTIN)
)
{ \
MPIU_Object_add_ref_always((objptr_)); \
} \
else { \
...
...
@@ -344,7 +344,7 @@ typedef OPA_int_t MPIU_Handle_ref_count;
#define MPIU_Object_release_ref(objptr_,inuse_ptr_) \
do { \
int handle_kind_ = HANDLE_GET_KIND((objptr_)->handle); \
if (handle_kind_ != HANDLE_KIND_BUILTIN) {
\
if
(unlikely
(handle_kind_ != HANDLE_KIND_BUILTIN)
)
{ \
MPIU_Object_release_ref_always((objptr_), (inuse_ptr_)); \
} \
else { \
...
...
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