Skip to content

Commit 2c5f1f9

Browse files
[ESIMD][NFC] Removed unused math APIs (#3968)
Those APIs were never used since there is no way conditions `detail::is_esimd_vector<T2>::value` and `std::is_integral<T2>::value` would be both true at the same time.
1 parent 843985c commit 2c5f1f9

File tree

1 file changed

+0
-20
lines changed
  • sycl/include/sycl/ext/intel/experimental/esimd

1 file changed

+0
-20
lines changed

sycl/include/sycl/ext/intel/experimental/esimd/math.hpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,6 @@ esimd_lsr(T1 src0, T2 src1, int flag = saturation_off) {
303303
return Result[0];
304304
}
305305

306-
template <typename T0, typename T1, typename T2>
307-
ESIMD_NODEBUG ESIMD_INLINE typename sycl::detail::enable_if_t<
308-
detail::is_esimd_scalar<T1>::value && detail::is_esimd_vector<T2>::value &&
309-
std::is_integral<T0>::value && std::is_integral<T1>::value &&
310-
std::is_integral<T2>::value,
311-
decltype(esimd_lsr<T0>(T2(), T1()))>
312-
esimd_lsr(T1 src0, T2 src1, int flag = saturation_off) {
313-
return esimd_lsr<T0>(src1, src0, flag);
314-
}
315-
316306
// esimd_asr
317307
template <typename T0, typename T1, int SZ, typename U>
318308
ESIMD_NODEBUG ESIMD_INLINE
@@ -346,16 +336,6 @@ esimd_asr(T1 src0, T2 src1, int flag = saturation_off) {
346336
return Result[0];
347337
}
348338

349-
template <typename T0, typename T1, typename T2>
350-
ESIMD_NODEBUG ESIMD_INLINE typename sycl::detail::enable_if_t<
351-
detail::is_esimd_scalar<T1>::value && detail::is_esimd_vector<T2>::value &&
352-
std::is_integral<T0>::value && std::is_integral<T1>::value &&
353-
std::is_integral<T2>::value,
354-
decltype(esimd_asr<T0>(T2(), T1()))>
355-
esimd_asr(T1 src0, T2 src1, int flag = saturation_off) {
356-
return esimd_asr<T0>(src1, src0, flag);
357-
}
358-
359339
// esimd_imul
360340
#ifndef ESIMD_HAS_LONG_LONG
361341
// use mulh instruction for high half

0 commit comments

Comments
 (0)