@@ -42,8 +42,7 @@ template <typename ElementType, access::address_space Space> class multi_ptr {
42
42
multi_ptr (multi_ptr &&) = default ;
43
43
multi_ptr (pointer_t pointer) : m_Pointer(pointer) {}
44
44
#ifdef __SYCL_DEVICE_ONLY__
45
- multi_ptr (ElementType *pointer)
46
- : m_Pointer((pointer_t )(pointer)) {
45
+ multi_ptr (ElementType *pointer) : m_Pointer((pointer_t )(pointer)) {
47
46
// TODO An implementation should reject an argument if the deduced
48
47
// address space is not compatible with Space.
49
48
}
@@ -62,7 +61,7 @@ template <typename ElementType, access::address_space Space> class multi_ptr {
62
61
multi_ptr &operator =(ElementType *pointer) {
63
62
// TODO An implementation should reject an argument if the deduced
64
63
// address space is not compatible with Space.
65
- m_Pointer = reinterpret_cast < pointer_t >(pointer) ;
64
+ m_Pointer = ( pointer_t )pointer ;
66
65
return *this ;
67
66
}
68
67
#endif
@@ -93,7 +92,7 @@ template <typename ElementType, access::address_space Space> class multi_ptr {
93
92
multi_ptr (accessor<ElementType, dimensions, Mode,
94
93
access::target::global_buffer, isPlaceholder>
95
94
Accessor) {
96
- m_Pointer = reinterpret_cast < pointer_t > (Accessor.get_pointer ().m_Pointer );
95
+ m_Pointer = ( pointer_t ) (Accessor.get_pointer ().m_Pointer );
97
96
}
98
97
99
98
// Only if Space == local_space
@@ -287,7 +286,7 @@ template <access::address_space Space> class multi_ptr<void, Space> {
287
286
multi_ptr (multi_ptr &&) = default ;
288
287
multi_ptr (pointer_t pointer) : m_Pointer(pointer) {}
289
288
#ifdef __SYCL_DEVICE_ONLY__
290
- multi_ptr (void *pointer) : m_Pointer(reinterpret_cast < pointer_t >(pointer) ) {
289
+ multi_ptr (void *pointer) : m_Pointer(( pointer_t )pointer ) {
291
290
// TODO An implementation should reject an argument if the deduced
292
291
// address space is not compatible with Space.
293
292
}
@@ -313,7 +312,7 @@ template <access::address_space Space> class multi_ptr<void, Space> {
313
312
multi_ptr &operator =(void *pointer) {
314
313
// TODO An implementation should reject an argument if the deduced
315
314
// address space is not compatible with Space.
316
- m_Pointer = reinterpret_cast < pointer_t >(pointer) ;
315
+ m_Pointer = ( pointer_t )pointer ;
317
316
return *this ;
318
317
}
319
318
#endif
@@ -403,8 +402,7 @@ class multi_ptr<const void, Space> {
403
402
multi_ptr (multi_ptr &&) = default ;
404
403
multi_ptr (pointer_t pointer) : m_Pointer(pointer) {}
405
404
#ifdef __SYCL_DEVICE_ONLY__
406
- multi_ptr (const void *pointer)
407
- : m_Pointer(reinterpret_cast <pointer_t >(pointer)) {
405
+ multi_ptr (const void *pointer) : m_Pointer((pointer_t )pointer) {
408
406
// TODO An implementation should reject an argument if the deduced
409
407
// address space is not compatible with Space.
410
408
}
@@ -430,7 +428,7 @@ class multi_ptr<const void, Space> {
430
428
multi_ptr &operator =(const void *pointer) {
431
429
// TODO An implementation should reject an argument if the deduced
432
430
// address space is not compatible with Space.
433
- m_Pointer = reinterpret_cast < pointer_t >(pointer) ;
431
+ m_Pointer = ( pointer_t )pointer ;
434
432
return *this ;
435
433
}
436
434
#endif
0 commit comments