File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 12
12
#include < CL/sycl/detail/export.hpp>
13
13
#include < CL/sycl/detail/type_traits.hpp>
14
14
15
- #include < array>
16
- #include < cmath>
17
- #include < cstdint>
18
15
#include < functional>
19
16
#include < iostream>
20
17
#include < limits>
@@ -59,7 +56,7 @@ inline __SYCL_CONSTEXPR_HALF uint16_t float2Half(const float &Val) {
59
56
const uint8_t Exp32 = (Bits & 0x7f800000 ) >> 23 ;
60
57
const int16_t Exp32Diff = Exp32 - 127 ;
61
58
62
- // intialize to 0, covers the case for 0 and small numbers
59
+ // initialize to 0, covers the case for 0 and small numbers
63
60
uint16_t Exp16 = 0 , Frac16 = 0 ;
64
61
65
62
if (__builtin_expect (Exp32Diff > 15 , 0 )) {
@@ -342,7 +339,7 @@ class half {
342
339
#ifndef __SYCL_DEVICE_ONLY__
343
340
// Since StorageT and BIsRepresentationT are different on host, these two
344
341
// helpers are required for 'vec' class
345
- constexpr half (const detail::host_half_impl::half_v2 &rhs) : Data(rhs){};
342
+ constexpr half (const detail::host_half_impl::half_v2 &rhs) : Data(rhs) {}
346
343
constexpr operator detail::host_half_impl::half_v2 () const { return Data; }
347
344
#endif // __SYCL_DEVICE_ONLY__
348
345
You can’t perform that action at this time.
0 commit comments