- if (*datatype == MPI_CHAR) {
- APPLY_FUNC(a, b, length, char, REPLACE_OP);
- } else if (*datatype == MPI_SHORT) {
- APPLY_FUNC(a, b, length, short, REPLACE_OP);
- } else if (*datatype == MPI_INT) {
- APPLY_FUNC(a, b, length, int, REPLACE_OP);
- } else if (*datatype == MPI_LONG) {
- APPLY_FUNC(a, b, length, long, REPLACE_OP);
- } else if (*datatype == MPI_UNSIGNED_SHORT) {
- APPLY_FUNC(a, b, length, unsigned short, REPLACE_OP);
- } else if (*datatype == MPI_UNSIGNED) {
- APPLY_FUNC(a, b, length, unsigned int, REPLACE_OP);
- } else if (*datatype == MPI_UNSIGNED_LONG) {
- APPLY_FUNC(a, b, length, unsigned long, REPLACE_OP);
- } else if (*datatype == MPI_BYTE) {
- APPLY_FUNC(a, b, length, uint8_t, REPLACE_OP);
- }