@@ -71,10 +71,6 @@ template <typename T, int width>
71
71
vector_impl<uint32_t , width> __cm_cl_cbit (vector_impl<T, width> src);
72
72
73
73
template <typename T> T __cm_cl_fma (T src0, T src1, T src2);
74
- template <typename T, int width>
75
- vector_impl<T, width> __cm_cl_fma (vector_impl<T, width> src0,
76
- vector_impl<T, width> src1,
77
- vector_impl<T, width> src2);
78
74
79
75
uint32_t __cm_cl_bfrev (uint32_t src);
80
76
template <int width>
@@ -84,8 +80,6 @@ template <typename T> T __cm_cl_abs_int(T src);
84
80
template <typename T> T __cm_cl_abs_float (T src);
85
81
86
82
template <typename T> T __cm_cl_sqrt (T src, bool use_fast);
87
- template <typename T, int width>
88
- vector_impl<T, width> __cm_cl_sqrt (vector_impl<T, width> src, bool use_fast);
89
83
90
84
vector_impl<uint32_t , 3 > __cm_cl_local_id ();
91
85
vector_impl<uint32_t , 3 > __cm_cl_local_size ();
@@ -281,15 +275,6 @@ template <typename T> uint32_t cbit(T src) {
281
275
return __cm_cl_cbit (src);
282
276
}
283
277
284
- template <typename T, int width>
285
- vector_impl<T, width> fma (vector_impl<T, width> src0,
286
- vector_impl<T, width> src1,
287
- vector_impl<T, width> src2) {
288
- static_assert (cl::is_floating_point<T>::value,
289
- " illegal type provided in fma" );
290
- return __cm_cl_fma (src0, src1, src2);
291
- }
292
-
293
278
template <typename T> T fma (T src0, T src1, T src2) {
294
279
static_assert (cl::is_floating_point<T>::value,
295
280
" illegal type provided in fma" );
@@ -322,13 +307,6 @@ template <bool use_fast, typename T> T sqrt(T src) {
322
307
return __cm_cl_sqrt (src, use_fast);
323
308
}
324
309
325
- template <bool use_fast, typename T, int width>
326
- vector_impl<T, width> sqrt (vector_impl<T, width> src) {
327
- static_assert (cl::is_floating_point<T>::value,
328
- " illegal type provided in sqrt" );
329
- return __cm_cl_sqrt (src, use_fast);
330
- }
331
-
332
310
template <atomic::operation operation, memory_order semantics,
333
311
memory_scope scope, typename T>
334
312
T atomicrmw (__global T *ptr, T operand) {
0 commit comments