@@ -143,11 +143,8 @@ sycl::marray<bfloat16, N> fabs(sycl::marray<bfloat16, N> x) {
143
143
auto partial_res = __clc_fabs (detail::to_uint32_t (x, i * 2 ));
144
144
std::memcpy (&res[i * 2 ], &partial_res, sizeof (uint32_t ));
145
145
}
146
- #if __cplusplus >= 201703L
147
- if constexpr (N % 2 )
148
- #else
146
+
149
147
if (N % 2 )
150
- #endif // __cplusplus >= 201703L
151
148
{
152
149
res[N - 1 ] = bfloat16::from_bits (__clc_fabs (x[N - 1 ].raw ()));
153
150
}
@@ -183,11 +180,8 @@ sycl::marray<bfloat16, N> fmin(sycl::marray<bfloat16, N> x,
183
180
std::memcpy (&res[i * 2 ], &partial_res, sizeof (uint32_t ));
184
181
}
185
182
186
- #if __cplusplus >= 201703L
187
- if constexpr (N % 2 )
188
- #else
183
+
189
184
if (N % 2 )
190
- #endif // __cplusplus >= 201703L
191
185
{
192
186
res[N - 1 ] =
193
187
bfloat16::from_bits (__clc_fmin (x[N - 1 ].raw (), y[N - 1 ].raw ()));
@@ -226,11 +220,7 @@ sycl::marray<bfloat16, N> fmax(sycl::marray<bfloat16, N> x,
226
220
std::memcpy (&res[i * 2 ], &partial_res, sizeof (uint32_t ));
227
221
}
228
222
229
- #if __cplusplus >= 201703L
230
- if constexpr (N % 2 )
231
- #else
232
223
if (N % 2 )
233
- #endif // __cplusplus >= 201703L
234
224
{
235
225
res[N - 1 ] =
236
226
bfloat16::from_bits (__clc_fmax (x[N - 1 ].raw (), y[N - 1 ].raw ()));
@@ -271,11 +261,7 @@ sycl::marray<bfloat16, N> fma(sycl::marray<bfloat16, N> x,
271
261
std::memcpy (&res[i * 2 ], &partial_res, sizeof (uint32_t ));
272
262
}
273
263
274
- #if __cplusplus >= 201703L
275
- if constexpr (N % 2 )
276
- #else
277
264
if (N % 2 )
278
- #endif // __cplusplus >= 201703L
279
265
{
280
266
res[N - 1 ] = bfloat16::from_bits (
281
267
__clc_fma (x[N - 1 ].raw (), y[N - 1 ].raw (), z[N - 1 ].raw ()));
0 commit comments