Skip to content

Commit cacd6f3

Browse files
committed
datatype: Remove #if HAVE_[TYPE] for C99 types
Now Open MPI requires a C99 compiler. Checking availability of the following types is no more needed. - `long long` (`signed` and `unsigned`) - `long double` - `float _Complex` - `double _Complex` - `long double _Complex` Furthermore, the `#if HAVE_[TYPE]` style checking is not correct. Availability of C types is checked by `AC_CHECK_TYPES` in `configure.ac`. `AC_CHECK_TYPES` defines macro `HAVE_[TYPE]` as `1` in `opal_config.h` if the `[TYPE]` is available. But it does not define `HAVE_[TYPE]` (instead of defining as `0`) if it is not available. So even if we need `HAVE_[TYPE]` checking, it should be `#if defined(HAVE_[TYPE])`. I didn't remove `AC_CHECK_TYPES` for these types in `configure.ac` since someone may use `HAVE_[TYPE]` macros somewhere. Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
1 parent 592e2cc commit cacd6f3

File tree

9 files changed

+17
-156
lines changed

9 files changed

+17
-156
lines changed

ompi/datatype/ompi_datatype_internal.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,6 @@ extern const ompi_datatype_t* ompi_datatype_basicDatatypes[OMPI_DATATYPE_MPI_MAX
559559
#define OMPI_DATATYPE_INITIALIZER_UNSIGNED_LONG OPAL_DATATYPE_INITIALIZER_UINT16
560560
#endif
561561

562-
563-
#if HAVE_LONG_LONG
564562
#if SIZEOF_LONG_LONG == 4
565563
#define OMPI_DATATYPE_INITIALIZER_LONG_LONG_INT OPAL_DATATYPE_INITIALIZER_INT4
566564
#define OMPI_DATATYPE_INITIALIZER_UNSIGNED_LONG_LONG OPAL_DATATYPE_INITIALIZER_UINT4
@@ -572,13 +570,6 @@ extern const ompi_datatype_t* ompi_datatype_basicDatatypes[OMPI_DATATYPE_MPI_MAX
572570
#define OMPI_DATATYPE_INITIALIZER_UNSIGNED_LONG_LONG OPAL_DATATYPE_INITIALIZER_UINT16
573571
#endif
574572

575-
#else /* HAVE_LONG_LONG */
576-
577-
#define OMPI_DATATYPE_INITIALIZER_LONG_LONG_INT OPAL_DATATYPE_INIT_UNAVAILABLE (LONG_LONG_INT, OMPI_DATATYPE_FLAG_DATA_C)
578-
#define OMPI_DATATYPE_INITIALIZER_UNSIGNED_LONG_LONG OPAL_DATATYPE_INIT_UNAVAILABLE (UNSIGNED_LONG_LONG, OMPI_DATATYPE_FLAG_DATA_C)
579-
580-
#endif /* HAVE_LONG_LONG */
581-
582573
#if SIZEOF_FLOAT == 2
583574
#define OMPI_DATATYPE_INITIALIZER_FLOAT OPAL_DATATYPE_INITIALIZER_FLOAT2
584575
#elif SIZEOF_FLOAT == 4
@@ -587,7 +578,6 @@ extern const ompi_datatype_t* ompi_datatype_basicDatatypes[OMPI_DATATYPE_MPI_MAX
587578
#define OMPI_DATATYPE_INITIALIZER_FLOAT OPAL_DATATYPE_INITIALIZER_FLOAT8
588579
#endif
589580

590-
591581
#if SIZEOF_DOUBLE == 4
592582
#define OMPI_DATATYPE_INITIALIZER_DOUBLE OPAL_DATATYPE_INITIALIZER_FLOAT4
593583
#elif SIZEOF_DOUBLE == 8
@@ -598,8 +588,6 @@ extern const ompi_datatype_t* ompi_datatype_basicDatatypes[OMPI_DATATYPE_MPI_MAX
598588
#define OMPI_DATATYPE_INITIALIZER_DOUBLE OPAL_DATATYPE_INITIALIZER_FLOAT16
599589
#endif
600590

601-
602-
#if HAVE_LONG_DOUBLE
603591
#if SIZEOF_LONG_DOUBLE == 4
604592
#define OMPI_DATATYPE_INITIALIZER_LONG_DOUBLE OPAL_DATATYPE_INITIALIZER_FLOAT4
605593
#elif SIZEOF_LONG_DOUBLE == 8
@@ -610,12 +598,6 @@ extern const ompi_datatype_t* ompi_datatype_basicDatatypes[OMPI_DATATYPE_MPI_MAX
610598
#define OMPI_DATATYPE_INITIALIZER_LONG_DOUBLE OPAL_DATATYPE_INITIALIZER_FLOAT16
611599
#endif
612600

613-
#else /* HAVE_LONG_DOUBLE */
614-
615-
#define OMPI_DATATYPE_INITIALIZER_LONG_DOUBLE OMPI_DATATYPE_INIT_UNAVAILABLE(LONG_DOUBLE, OMPI_DATATYPE_FLAG_DATA_C)
616-
617-
#endif /* HAVE_LONG_DOUBLE */
618-
619601
#define OMPI_DATATYPE_INITIALIZER_PACKED OPAL_DATATYPE_INITIALIZER_UINT1
620602

621603
#define OMPI_DATATYPE_INITIALIZER_BOOL OPAL_DATATYPE_INITIALIZER_BOOL

ompi/datatype/ompi_datatype_module.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,11 @@ ompi_predefined_datatype_t ompi_mpi_int = OMPI_DATATYPE_INIT_PREDEFIN
8080
ompi_predefined_datatype_t ompi_mpi_unsigned = OMPI_DATATYPE_INIT_PREDEFINED (UNSIGNED, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
8181
ompi_predefined_datatype_t ompi_mpi_long = OMPI_DATATYPE_INIT_PREDEFINED (LONG, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
8282
ompi_predefined_datatype_t ompi_mpi_unsigned_long = OMPI_DATATYPE_INIT_PREDEFINED (UNSIGNED_LONG, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
83-
#if HAVE_LONG_LONG
8483
ompi_predefined_datatype_t ompi_mpi_long_long_int = OMPI_DATATYPE_INIT_PREDEFINED (LONG_LONG_INT, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
8584
ompi_predefined_datatype_t ompi_mpi_unsigned_long_long = OMPI_DATATYPE_INIT_PREDEFINED (UNSIGNED_LONG_LONG, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
86-
#else
87-
ompi_predefined_datatype_t ompi_mpi_long_long_int = OMPI_DATATYPE_INIT_UNAVAILABLE (LONG_LONG_INT, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
88-
ompi_predefined_datatype_t ompi_mpi_unsigned_long_long = OMPI_DATATYPE_INIT_UNAVAILABLE (UNSIGNED_LONG_LONG, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT);
89-
#endif /* HAVE_LONG_LONG */
9085
ompi_predefined_datatype_t ompi_mpi_float = OMPI_DATATYPE_INIT_PREDEFINED (FLOAT, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_FLOAT );
9186
ompi_predefined_datatype_t ompi_mpi_double = OMPI_DATATYPE_INIT_PREDEFINED (DOUBLE, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_FLOAT );
92-
#if HAVE_LONG_DOUBLE
9387
ompi_predefined_datatype_t ompi_mpi_long_double = OMPI_DATATYPE_INIT_PREDEFINED (LONG_DOUBLE, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_FLOAT );
94-
#else
95-
ompi_predefined_datatype_t ompi_mpi_long_double = OMPI_DATATYPE_INIT_UNAVAILABLE (LONG_DOUBLE, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_FLOAT );
96-
#endif /* HAVE_LONG_DOUBLE */
9788
#if defined(OPAL_ALIGNMENT_WCHAR) && OPAL_ALIGNMENT_WCHAR != 0
9889
ompi_predefined_datatype_t ompi_mpi_wchar = OMPI_DATATYPE_INIT_PREDEFINED (WCHAR, OMPI_DATATYPE_FLAG_DATA_C );
9990
#else
@@ -113,11 +104,7 @@ ompi_predefined_datatype_t ompi_mpi_cxx_bool = OMPI_DATATYPE_INIT_PREDEFIN
113104
ompi_predefined_datatype_t ompi_mpi_c_float_complex = OMPI_DATATYPE_INIT_PREDEFINED_BASIC_TYPE (C_FLOAT_COMPLEX, C_COMPLEX, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
114105
ompi_predefined_datatype_t ompi_mpi_c_complex = OMPI_DATATYPE_INIT_PREDEFINED_BASIC_TYPE (C_FLOAT_COMPLEX, C_COMPLEX, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
115106
ompi_predefined_datatype_t ompi_mpi_c_double_complex = OMPI_DATATYPE_INIT_PREDEFINED (C_DOUBLE_COMPLEX, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
116-
#if HAVE_LONG_DOUBLE
117107
ompi_predefined_datatype_t ompi_mpi_c_long_double_complex = OMPI_DATATYPE_INIT_PREDEFINED (C_LONG_DOUBLE_COMPLEX, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
118-
#else
119-
ompi_predefined_datatype_t ompi_mpi_c_long_double_complex = OMPI_DATATYPE_INIT_UNAVAILABLE (C_LONG_DOUBLE_COMPLEX, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
120-
#endif /* HAVE_LONG_DOUBLE */
121108

122109
/* The C++ complex datatypes are the same as the C datatypes */
123110
ompi_predefined_datatype_t ompi_mpi_cxx_cplex = OMPI_DATATYPE_INIT_PREDEFINED_BASIC_TYPE (C_FLOAT_COMPLEX, CXX_FLOAT_COMPLEX, OMPI_DATATYPE_FLAG_DATA_CPP | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
@@ -137,7 +124,7 @@ ompi_predefined_datatype_t ompi_mpi_dblcplex = OMPI_DATATYPE_INIT_UNAVAILA
137124
#endif
138125

139126
/* In Fortran, there does not exist a type LONG DOUBLE COMPLEX, but DOUBLE COMPLEX(KIND=8) may require this */
140-
#if HAVE_LONG_DOUBLE && OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX
127+
#if OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX
141128
ompi_predefined_datatype_t ompi_mpi_ldblcplex = OMPI_DATATYPE_INIT_PREDEFINED_BASIC_TYPE (C_LONG_DOUBLE_COMPLEX, LONG_DOUBLE_COMPLEX, OMPI_DATATYPE_FLAG_DATA_FORTRAN | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
142129
#else
143130
ompi_predefined_datatype_t ompi_mpi_ldblcplex = OMPI_DATATYPE_INIT_UNAVAILABLE (LONG_DOUBLE_COMPLEX, OMPI_DATATYPE_FLAG_DATA_FORTRAN | OMPI_DATATYPE_FLAG_DATA_COMPLEX );
@@ -174,11 +161,7 @@ ompi_predefined_datatype_t ompi_mpi_dblprec = OMPI_DATATYPE_INIT_PREDEFIN
174161
/* Aggregate struct datatypes are not const */
175162
ompi_predefined_datatype_t ompi_mpi_float_int = OMPI_DATATYPE_INIT_DEFER (FLOAT_INT, OMPI_DATATYPE_FLAG_DATA_C );
176163
ompi_predefined_datatype_t ompi_mpi_double_int = OMPI_DATATYPE_INIT_DEFER (DOUBLE_INT, OMPI_DATATYPE_FLAG_DATA_C );
177-
#if HAVE_LONG_DOUBLE
178164
ompi_predefined_datatype_t ompi_mpi_longdbl_int = OMPI_DATATYPE_INIT_DEFER (LONG_DOUBLE_INT, OMPI_DATATYPE_FLAG_DATA_C );
179-
#else
180-
ompi_predefined_datatype_t ompi_mpi_longdbl_int = OMPI_DATATYPE_INIT_UNAVAILABLE (LONG_DOUBLE_INT, OMPI_DATATYPE_FLAG_DATA_C );
181-
#endif /* HAVE_LONG_DOUBLE */
182165

183166
ompi_predefined_datatype_t ompi_mpi_2int = OMPI_DATATYPE_INIT_DEFER (2INT, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );
184167
ompi_predefined_datatype_t ompi_mpi_short_int = OMPI_DATATYPE_INIT_DEFER (SHORT_INT, OMPI_DATATYPE_FLAG_DATA_C | OMPI_DATATYPE_FLAG_DATA_INT );

ompi/mca/op/base/op_base_functions.c

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ FUNC_FUNC(max, fortran_integer16, ompi_fortran_integer16_t)
139139
/* Floating point */
140140
FUNC_FUNC(max, float, float)
141141
FUNC_FUNC(max, double, double)
142-
#if HAVE_LONG_DOUBLE
143142
FUNC_FUNC(max, long_double, long double)
144-
#endif
145143
#if OMPI_HAVE_FORTRAN_REAL
146144
FUNC_FUNC(max, fortran_real, ompi_fortran_real_t)
147145
#endif
@@ -199,9 +197,7 @@ FUNC_FUNC(min, fortran_integer16, ompi_fortran_integer16_t)
199197
/* Floating point */
200198
FUNC_FUNC(min, float, float)
201199
FUNC_FUNC(min, double, double)
202-
#if HAVE_LONG_DOUBLE
203200
FUNC_FUNC(min, long_double, long double)
204-
#endif
205201
#if OMPI_HAVE_FORTRAN_REAL
206202
FUNC_FUNC(min, fortran_real, ompi_fortran_real_t)
207203
#endif
@@ -256,9 +252,7 @@ OP_FUNC(sum, fortran_integer16, ompi_fortran_integer16_t, +=)
256252
/* Floating point */
257253
OP_FUNC(sum, float, float, +=)
258254
OP_FUNC(sum, double, double, +=)
259-
#if HAVE_LONG_DOUBLE
260255
OP_FUNC(sum, long_double, long double, +=)
261-
#endif
262256
#if OMPI_HAVE_FORTRAN_REAL
263257
OP_FUNC(sum, fortran_real, ompi_fortran_real_t, +=)
264258
#endif
@@ -278,15 +272,9 @@ OP_FUNC(sum, fortran_real8, ompi_fortran_real8_t, +=)
278272
OP_FUNC(sum, fortran_real16, ompi_fortran_real16_t, +=)
279273
#endif
280274
/* Complex */
281-
#if HAVE_FLOAT__COMPLEX
282275
OP_FUNC(sum, c_float_complex, float _Complex, +=)
283-
#endif
284-
#if HAVE_DOUBLE__COMPLEX
285276
OP_FUNC(sum, c_double_complex, double _Complex, +=)
286-
#endif
287-
#if HAVE_LONG_DOUBLE__COMPLEX
288277
OP_FUNC(sum, c_long_double_complex, long double _Complex, +=)
289-
#endif
290278

291279
/*************************************************************************
292280
* Product
@@ -323,9 +311,7 @@ OP_FUNC(prod, fortran_integer16, ompi_fortran_integer16_t, *=)
323311
/* Floating point */
324312
OP_FUNC(prod, float, float, *=)
325313
OP_FUNC(prod, double, double, *=)
326-
#if HAVE_LONG_DOUBLE
327314
OP_FUNC(prod, long_double, long double, *=)
328-
#endif
329315
#if OMPI_HAVE_FORTRAN_REAL
330316
OP_FUNC(prod, fortran_real, ompi_fortran_real_t, *=)
331317
#endif
@@ -345,15 +331,9 @@ OP_FUNC(prod, fortran_real8, ompi_fortran_real8_t, *=)
345331
OP_FUNC(prod, fortran_real16, ompi_fortran_real16_t, *=)
346332
#endif
347333
/* Complex */
348-
#if HAVE_FLOAT__COMPLEX
349334
OP_FUNC(prod, c_float_complex, float _Complex, *=)
350-
#endif
351-
#if HAVE_DOUBLE__COMPLEX
352335
OP_FUNC(prod, c_double_complex, double _Complex, *=)
353-
#endif
354-
#if HAVE_LONG_DOUBLE__COMPLEX
355336
OP_FUNC(prod, c_long_double_complex, long double _Complex, *=)
356-
#endif
357337

358338
/*************************************************************************
359339
* Logical AND
@@ -550,9 +530,7 @@ LOC_STRUCT(double_int, double, int)
550530
LOC_STRUCT(long_int, long, int)
551531
LOC_STRUCT(2int, int, int)
552532
LOC_STRUCT(short_int, short, int)
553-
#if HAVE_LONG_DOUBLE
554533
LOC_STRUCT(long_double_int, long double, int)
555-
#endif
556534

557535
/*************************************************************************
558536
* Max location
@@ -572,9 +550,7 @@ LOC_FUNC(maxloc, double_int, >)
572550
LOC_FUNC(maxloc, long_int, >)
573551
LOC_FUNC(maxloc, 2int, >)
574552
LOC_FUNC(maxloc, short_int, >)
575-
#if HAVE_LONG_DOUBLE
576553
LOC_FUNC(maxloc, long_double_int, >)
577-
#endif
578554

579555
/*************************************************************************
580556
* Min location
@@ -594,9 +570,7 @@ LOC_FUNC(minloc, double_int, <)
594570
LOC_FUNC(minloc, long_int, <)
595571
LOC_FUNC(minloc, 2int, <)
596572
LOC_FUNC(minloc, short_int, <)
597-
#if HAVE_LONG_DOUBLE
598573
LOC_FUNC(minloc, long_double_int, <)
599-
#endif
600574

601575

602576
/*
@@ -719,9 +693,7 @@ FUNC_FUNC_3BUF(max, fortran_integer16, ompi_fortran_integer16_t)
719693
/* Floating point */
720694
FUNC_FUNC_3BUF(max, float, float)
721695
FUNC_FUNC_3BUF(max, double, double)
722-
#if HAVE_LONG_DOUBLE
723696
FUNC_FUNC_3BUF(max, long_double, long double)
724-
#endif
725697
#if OMPI_HAVE_FORTRAN_REAL
726698
FUNC_FUNC_3BUF(max, fortran_real, ompi_fortran_real_t)
727699
#endif
@@ -779,9 +751,7 @@ FUNC_FUNC_3BUF(min, fortran_integer16, ompi_fortran_integer16_t)
779751
/* Floating point */
780752
FUNC_FUNC_3BUF(min, float, float)
781753
FUNC_FUNC_3BUF(min, double, double)
782-
#if HAVE_LONG_DOUBLE
783754
FUNC_FUNC_3BUF(min, long_double, long double)
784-
#endif
785755
#if OMPI_HAVE_FORTRAN_REAL
786756
FUNC_FUNC_3BUF(min, fortran_real, ompi_fortran_real_t)
787757
#endif
@@ -836,9 +806,7 @@ OP_FUNC_3BUF(sum, fortran_integer16, ompi_fortran_integer16_t, +)
836806
/* Floating point */
837807
OP_FUNC_3BUF(sum, float, float, +)
838808
OP_FUNC_3BUF(sum, double, double, +)
839-
#if HAVE_LONG_DOUBLE
840809
OP_FUNC_3BUF(sum, long_double, long double, +)
841-
#endif
842810
#if OMPI_HAVE_FORTRAN_REAL
843811
OP_FUNC_3BUF(sum, fortran_real, ompi_fortran_real_t, +)
844812
#endif
@@ -858,15 +826,9 @@ OP_FUNC_3BUF(sum, fortran_real8, ompi_fortran_real8_t, +)
858826
OP_FUNC_3BUF(sum, fortran_real16, ompi_fortran_real16_t, +)
859827
#endif
860828
/* Complex */
861-
#if HAVE_FLOAT__COMPLEX
862829
OP_FUNC_3BUF(sum, c_float_complex, float _Complex, +)
863-
#endif
864-
#if HAVE_DOUBLE__COMPLEX
865830
OP_FUNC_3BUF(sum, c_double_complex, double _Complex, +)
866-
#endif
867-
#if HAVE_LONG_DOUBLE__COMPLEX
868831
OP_FUNC_3BUF(sum, c_long_double_complex, long double _Complex, +)
869-
#endif
870832

871833
/*************************************************************************
872834
* Product
@@ -903,9 +865,7 @@ OP_FUNC_3BUF(prod, fortran_integer16, ompi_fortran_integer16_t, *)
903865
/* Floating point */
904866
OP_FUNC_3BUF(prod, float, float, *)
905867
OP_FUNC_3BUF(prod, double, double, *)
906-
#if HAVE_LONG_DOUBLE
907868
OP_FUNC_3BUF(prod, long_double, long double, *)
908-
#endif
909869
#if OMPI_HAVE_FORTRAN_REAL
910870
OP_FUNC_3BUF(prod, fortran_real, ompi_fortran_real_t, *)
911871
#endif
@@ -925,15 +885,9 @@ OP_FUNC_3BUF(prod, fortran_real8, ompi_fortran_real8_t, *)
925885
OP_FUNC_3BUF(prod, fortran_real16, ompi_fortran_real16_t, *)
926886
#endif
927887
/* Complex */
928-
#if HAVE_FLOAT__COMPLEX
929888
OP_FUNC_3BUF(prod, c_float_complex, float _Complex, *)
930-
#endif
931-
#if HAVE_DOUBLE__COMPLEX
932889
OP_FUNC_3BUF(prod, c_double_complex, double _Complex, *)
933-
#endif
934-
#if HAVE_LONG_DOUBLE__COMPLEX
935890
OP_FUNC_3BUF(prod, c_long_double_complex, long double _Complex, *)
936-
#endif
937891

938892
/*************************************************************************
939893
* Logical AND
@@ -1131,9 +1085,7 @@ LOC_STRUCT_3BUF(double_int, double, int)
11311085
LOC_STRUCT_3BUF(long_int, long, int)
11321086
LOC_STRUCT_3BUF(2int, int, int)
11331087
LOC_STRUCT_3BUF(short_int, short, int)
1134-
#if HAVE_LONG_DOUBLE
11351088
LOC_STRUCT_3BUF(long_double_int, long double, int)
1136-
#endif
11371089
*/
11381090

11391091
/*************************************************************************
@@ -1154,9 +1106,7 @@ LOC_FUNC_3BUF(maxloc, double_int, >)
11541106
LOC_FUNC_3BUF(maxloc, long_int, >)
11551107
LOC_FUNC_3BUF(maxloc, 2int, >)
11561108
LOC_FUNC_3BUF(maxloc, short_int, >)
1157-
#if HAVE_LONG_DOUBLE
11581109
LOC_FUNC_3BUF(maxloc, long_double_int, >)
1159-
#endif
11601110

11611111
/*************************************************************************
11621112
* Min location
@@ -1176,9 +1126,7 @@ LOC_FUNC_3BUF(minloc, double_int, <)
11761126
LOC_FUNC_3BUF(minloc, long_int, <)
11771127
LOC_FUNC_3BUF(minloc, 2int, <)
11781128
LOC_FUNC_3BUF(minloc, short_int, <)
1179-
#if HAVE_LONG_DOUBLE
11801129
LOC_FUNC_3BUF(minloc, long_double_int, <)
1181-
#endif
11821130

11831131
/*
11841132
* Helpful defines, because there's soooo many names!

ompi/mca/osc/portals4/osc_portals4_comm.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,10 @@ ompi_osc_portals4_get_dt(struct ompi_datatype_t *dt, ptl_datatype_t *ptl_dt)
127127
return get_sized_type(false, sizeof(long), ptl_dt);
128128
} else if (MPI_UNSIGNED == base_dt) {
129129
return get_sized_type(false, sizeof(int), ptl_dt);
130-
#if OPAL_HAVE_LONG_LONG
131130
} else if (MPI_LONG_LONG_INT == base_dt) {
132131
return get_sized_type(true, sizeof(long long int), ptl_dt);
133132
} else if (MPI_LONG_LONG == base_dt) {
134133
return get_sized_type(true, sizeof(long long), ptl_dt);
135-
#endif
136134
} else if (MPI_INT8_T == base_dt) {
137135
*ptl_dt = PTL_INT8_T;
138136
} else if (MPI_UINT8_T == base_dt) {
@@ -149,20 +147,14 @@ ompi_osc_portals4_get_dt(struct ompi_datatype_t *dt, ptl_datatype_t *ptl_dt)
149147
*ptl_dt = PTL_INT64_T;
150148
} else if (MPI_UINT64_T == base_dt) {
151149
*ptl_dt = PTL_UINT64_T;
152-
#if HAVE_FLOAT__COMPLEX
153150
} else if (MPI_C_COMPLEX == base_dt) {
154151
*ptl_dt = PTL_DOUBLE_COMPLEX;
155152
} else if (MPI_C_FLOAT_COMPLEX == base_dt) {
156153
*ptl_dt = PTL_FLOAT_COMPLEX;
157-
#endif
158-
#if HAVE_DOUBLE__COMPLEX
159154
} else if (MPI_C_DOUBLE_COMPLEX == base_dt) {
160155
*ptl_dt = PTL_DOUBLE_COMPLEX;
161-
#endif
162-
#if HAVE_LONG_DOUBLE__COMPLEX
163156
} else if (MPI_C_LONG_DOUBLE_COMPLEX == base_dt) {
164157
*ptl_dt = PTL_LONG_DOUBLE_COMPLEX;
165-
#endif
166158
} else if (MPI_AINT == base_dt) {
167159
if (sizeof(MPI_Aint) == 2) {
168160
*ptl_dt = PTL_UINT16_T;

0 commit comments

Comments
 (0)