Skip to content

Commit 5ceb0b1

Browse files
authored
[NFC][SYCL] Fix formatting and typos (#5822)
Remove unused header files.
1 parent 16e1920 commit 5ceb0b1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sycl/include/CL/sycl/half_type.hpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#include <CL/sycl/detail/export.hpp>
1313
#include <CL/sycl/detail/type_traits.hpp>
1414

15-
#include <array>
16-
#include <cmath>
17-
#include <cstdint>
1815
#include <functional>
1916
#include <iostream>
2017
#include <limits>
@@ -59,7 +56,7 @@ inline __SYCL_CONSTEXPR_HALF uint16_t float2Half(const float &Val) {
5956
const uint8_t Exp32 = (Bits & 0x7f800000) >> 23;
6057
const int16_t Exp32Diff = Exp32 - 127;
6158

62-
// intialize to 0, covers the case for 0 and small numbers
59+
// initialize to 0, covers the case for 0 and small numbers
6360
uint16_t Exp16 = 0, Frac16 = 0;
6461

6562
if (__builtin_expect(Exp32Diff > 15, 0)) {
@@ -342,7 +339,7 @@ class half {
342339
#ifndef __SYCL_DEVICE_ONLY__
343340
// Since StorageT and BIsRepresentationT are different on host, these two
344341
// 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) {}
346343
constexpr operator detail::host_half_impl::half_v2() const { return Data; }
347344
#endif // __SYCL_DEVICE_ONLY__
348345

0 commit comments

Comments
 (0)