Skip to content

Commit 7ab519e

Browse files
cchambreaukingshuk00
authored andcommitted
Add OPAL_LIKELY
Signed-off-by: Chris Chambreau <chambreau1@llnl.gov>
1 parent 8702a9f commit 7ab519e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/mca/base/mca_base_source.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static uint64_t mca_base_source_default_time_source (void)
4848
static uint64_t mca_base_source_default_time_source_ticks (void)
4949
{
5050
struct timespec spec;
51-
if (0 == opal_clock_getres(&spec)){
51+
if (OPAL_LIKELY(0 == opal_clock_getres(&spec))){
5252
return (uint64_t)(spec.tv_sec + spec.tv_nsec);
5353
} else {
5454
/* guess */

0 commit comments

Comments
 (0)