Skip to content

Commit e3ac333

Browse files
committed
Clang-format fix
1 parent 1e76a8c commit e3ac333

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sycl/include/CL/sycl/half_type.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,9 @@ template <int NumElements> struct half_vec {
305305
alignas(detail::vector_alignment<StorageT, NumElements>::value)
306306
StorageT s[NumElements];
307307

308-
__SYCL_CONSTEXPR_HALF half_vec() : s{0.0f} {
309-
initialize_data();
310-
}
308+
__SYCL_CONSTEXPR_HALF half_vec() : s{0.0f} { initialize_data(); }
311309
constexpr void initialize_data() {
312-
for (size_t i = 0; i < NumElements; ++i){
310+
for (size_t i = 0; i < NumElements; ++i) {
313311
s[i] = StorageT(0.0f);
314312
}
315313
}

sycl/include/CL/sycl/marray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ template <typename Type, std::size_t NumElements> class marray {
4949
conjunction<TypeChecker<ArgTN, DataT>...>::value>::type;
5050

5151
constexpr void initialize_data(const Type &Arg) {
52-
for (size_t i = 0; i < NumElements; ++i){
52+
for (size_t i = 0; i < NumElements; ++i) {
5353
MData[i] = Arg;
5454
}
5555
}

0 commit comments

Comments
 (0)