Skip to content

Commit 0e3a39e

Browse files
committed
Renamed functions
1 parent 87a3d02 commit 0e3a39e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

sycl/include/CL/sycl/half_type.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ template <int NumElements> struct half_vec {
306306
StorageT s[NumElements];
307307

308308
__SYCL_CONSTEXPR_HALF half_vec() : s{0.0f} {
309-
call();
309+
initialize_data();
310310
}
311-
constexpr void call () {
311+
constexpr void initialize_data() {
312312
for (size_t i = 0; i < NumElements; ++i){
313313
s[i] = StorageT(0.0f);
314314
}

sycl/include/CL/sycl/marray.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ template <typename Type, std::size_t NumElements> class marray {
4848
using EnableIfSuitableTypes = typename std::enable_if<
4949
conjunction<TypeChecker<ArgTN, DataT>...>::value>::type;
5050

51+
constexpr void initialize_data(const Type &Arg) {
52+
for (size_t i = 0; i < NumElements; ++i){
53+
MData[i] = Arg;
54+
}
55+
}
56+
5157
public:
5258
constexpr marray() : MData{} {}
5359

5460
explicit constexpr marray(const Type &Arg) : MData{Arg} {
55-
call(Arg);
56-
}
57-
58-
constexpr void call (const Type &Arg) {
59-
for (size_t i = 0; i < NumElements; ++i){
60-
MData[i] = Arg;
61-
}
61+
initialize_data(Arg);
6262
}
6363

6464
template <

0 commit comments

Comments
 (0)