File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ __SYCL_INLINE_NAMESPACE(cl) {
37
37
namespace sycl {
38
38
namespace detail {
39
39
40
- // bitselect builtin uses union with half specialization, but half has no
41
- // trivial constructor. This struct allow to use host half class instead of main
42
- // half class in the bitselect builtin.
43
-
44
40
inline __SYCL_CONSTEXPR_HALF uint16_t float2Half (const float &Val) {
45
41
const uint32_t Bits = sycl::bit_cast<uint32_t >(Val);
46
42
@@ -325,7 +321,7 @@ class half {
325
321
half () = default ;
326
322
constexpr half (const half &) = default;
327
323
constexpr half (half &&) = default;
328
-
324
+
329
325
__SYCL_CONSTEXPR_HALF half (const float &rhs) : Data(rhs) {}
330
326
331
327
constexpr half &operator =(const half &rhs) = default ;
You can’t perform that action at this time.
0 commit comments