From dbec514b0fcdd4f494d2a9ab62ce1eaf9c0fe577 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 1 Nov 2006 23:19:20 +0000 Subject: [PATCH] Optimize the generation of the match_bits and the mask. This commit was SVN r12396. --- ompi/mca/mtl/mx/mtl_mx_types.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ompi/mca/mtl/mx/mtl_mx_types.h b/ompi/mca/mtl/mx/mtl_mx_types.h index 85f3439595..f63aba915a 100644 --- a/ompi/mca/mtl/mx/mtl_mx_types.h +++ b/ompi/mca/mtl/mx/mtl_mx_types.h @@ -103,15 +103,14 @@ extern mca_mtl_mx_component_t mca_mtl_mx_component; /* receive posting */ #define MX_SET_RECV_BITS(match_bits, mask_bits, contextid, source, tag) \ { \ - match_bits = 0; \ - mask_bits = ~match_bits; \ match_bits = contextid; \ match_bits = (match_bits << 16); \ \ if (MPI_ANY_SOURCE == source) { \ match_bits = (match_bits << 32); \ - mask_bits &= MX_SOURCE_IGNR; \ + mask_bits = MX_SOURCE_IGNR; \ } else { \ + mask_bits = ~0; \ match_bits |= source; \ match_bits = (match_bits << 32); \ } \ @@ -121,8 +120,6 @@ extern mca_mtl_mx_component_t mca_mtl_mx_component; } else { \ match_bits |= (MX_TAG_MASK & tag); \ } \ - \ - mask_bits = mask_bits; \ }