@@ -579,8 +579,9 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
579
579
assert (! (convertor -> flags & CONVERTOR_SEND ));
580
580
OPAL_CONVERTOR_PREPARE ( convertor , datatype , count , pUserBuf );
581
581
582
- if ( convertor -> flags & CONVERTOR_WITH_CHECKSUM ) {
583
- if ( !(convertor -> flags & CONVERTOR_HOMOGENEOUS ) ) {
582
+ #if defined(CHECKSUM )
583
+ if ( OPAL_UNLIKELY (convertor -> flags & CONVERTOR_WITH_CHECKSUM ) ) {
584
+ if ( OPAL_UNLIKELY (!(convertor -> flags & CONVERTOR_HOMOGENEOUS )) ) {
584
585
convertor -> fAdvance = opal_unpack_general_checksum ;
585
586
} else {
586
587
if ( convertor -> pDesc -> flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
@@ -589,8 +590,9 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
589
590
convertor -> fAdvance = opal_generic_simple_unpack_checksum ;
590
591
}
591
592
}
592
- } else {
593
- if ( !(convertor -> flags & CONVERTOR_HOMOGENEOUS ) ) {
593
+ } else
594
+ #endif /* defined(CHECKSUM) */
595
+ if ( OPAL_UNLIKELY (!(convertor -> flags & CONVERTOR_HOMOGENEOUS )) ) {
594
596
convertor -> fAdvance = opal_unpack_general ;
595
597
} else {
596
598
if ( convertor -> pDesc -> flags & OPAL_DATATYPE_FLAG_CONTIGUOUS ) {
@@ -599,7 +601,6 @@ int32_t opal_convertor_prepare_for_recv( opal_convertor_t* convertor,
599
601
convertor -> fAdvance = opal_generic_simple_unpack ;
600
602
}
601
603
}
602
- }
603
604
return OPAL_SUCCESS ;
604
605
}
605
606
@@ -618,6 +619,7 @@ int32_t opal_convertor_prepare_for_send( opal_convertor_t* convertor,
618
619
619
620
OPAL_CONVERTOR_PREPARE ( convertor , datatype , count , pUserBuf );
620
621
622
+ #if defined(CHECKSUM )
621
623
if ( convertor -> flags & CONVERTOR_WITH_CHECKSUM ) {
622
624
if ( CONVERTOR_SEND_CONVERSION == (convertor -> flags & (CONVERTOR_SEND_CONVERSION |CONVERTOR_HOMOGENEOUS )) ) {
623
625
convertor -> fAdvance = opal_pack_general_checksum ;
@@ -632,7 +634,8 @@ int32_t opal_convertor_prepare_for_send( opal_convertor_t* convertor,
632
634
convertor -> fAdvance = opal_generic_simple_pack_checksum ;
633
635
}
634
636
}
635
- } else {
637
+ } else
638
+ #endif /* defined(CHECKSUM) */
636
639
if ( CONVERTOR_SEND_CONVERSION == (convertor -> flags & (CONVERTOR_SEND_CONVERSION |CONVERTOR_HOMOGENEOUS )) ) {
637
640
convertor -> fAdvance = opal_pack_general ;
638
641
} else {
@@ -646,7 +649,6 @@ int32_t opal_convertor_prepare_for_send( opal_convertor_t* convertor,
646
649
convertor -> fAdvance = opal_generic_simple_pack ;
647
650
}
648
651
}
649
- }
650
652
return OPAL_SUCCESS ;
651
653
}
652
654
0 commit comments