Skip to content

Commit 34ee628

Browse files
kbobrovsv-klochkov
andauthored
Apply suggestions from code review
Co-authored-by: Vyacheslav Klochkov <[email protected]>
1 parent 832e19e commit 34ee628

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sycl/include/sycl/ext/intel/experimental/esimd/detail/math_intrin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ __ESIMD_INTRIN __ESIMD_raw_vec_t(T, N)
262262
;
263263
#else
264264
{
265-
if (__SEIEED::is_wrapper_elem_type_v<T>)
265+
if constexpr (__SEIEED::is_wrapper_elem_type_v<T>)
266266
__ESIMD_UNSUPPORTED_ON_HOST;
267267
__ESIMD_raw_vec_t(T, N) retv;
268268
for (auto i = 0; i != N; i += 4) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,8 @@ ESIMD_NODEBUG ESIMD_INLINE simd<T, SZ> log(simd<T, SZ> src0) {
16431643

16441644
if constexpr (Flag != saturation_on)
16451645
return Result;
1646-
1647-
return esimd::saturate<T>(Result);
1646+
else
1647+
return esimd::saturate<T>(Result);
16481648
}
16491649

16501650
template <class T> ESIMD_NODEBUG ESIMD_INLINE T log(T src0, int flag) {

0 commit comments

Comments
 (0)