Skip to content

Commit 3715be4

Browse files
committed
use HIPSYCL_INPLACE_BIT_CAST instead of sycl::bit_cast
1 parent 83a8040 commit 3715be4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • include/hipSYCL/sycl/libkernel

include/hipSYCL/sycl/libkernel/vec.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ class vec {
353353
static_assert(std::is_same_v<VectorStorage, detail::vec_storage<T, N>>,
354354
"Reinterpreting swizzled vectors directly is not supported");
355355

356-
return sycl::bit_cast<asT>(*this);
356+
asT result;
357+
HIPSYCL_INPLACE_BIT_CAST(T, asT, *this, result);
358+
return result;
357359
}
358360

359361
template<int... SwizzleIndices>

0 commit comments

Comments
 (0)