From 4712a73db5be1e320d67f2572bdf779f3ceeffba Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Mon, 4 Aug 2008 14:50:27 +0000 Subject: [PATCH] - Help the compiler, by noting that errors are unlikely. This commit was SVN r19138. --- ompi/errhandler/errhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/errhandler/errhandler.h b/ompi/errhandler/errhandler.h index 9b6bc37ee2..a08fb94692 100644 --- a/ompi/errhandler/errhandler.h +++ b/ompi/errhandler/errhandler.h @@ -239,7 +239,7 @@ struct ompi_request_t; */ #define OMPI_ERRHANDLER_RETURN(rc, mpi_object, err_code, message) \ OPAL_CR_EXIT_LIBRARY() \ - if (rc != OMPI_SUCCESS) { \ + if ( OPAL_UNLIKELY(OMPI_SUCCESS != rc) ) { \ int __mpi_err_code = (err_code < 0 ? (ompi_errcode_get_mpi_code(err_code)) : err_code); \ ompi_errhandler_invoke((mpi_object)->error_handler, \ (mpi_object), \