No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
35080d7
... +2 ...
0ef6a6c
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
157 | 157 | return *this; |
|
158 | 158 | } |
|
159 | 159 | ||
160 | + | template <typename U> |
|
161 | + | const vector_type2& operator+=(U o) { |
|
162 | + | s0 += o; |
|
163 | + | s1 += o; |
|
164 | + | return *this; |
|
165 | + | } |
|
166 | + | ||
160 | 167 | const vector_type2& operator-=(const vector_type2 &o) { |
|
161 | 168 | s0 -= o.s0; |
|
162 | 169 | s1 -= o.s1; |
|
163 | 170 | return *this; |
|
164 | 171 | } |
|
172 | + | ||
173 | + | template <typename U> |
|
174 | + | const vector_type2& operator-=(U o) { |
|
175 | + | s0 -= o; |
|
176 | + | s1 -= o; |
|
177 | + | return *this; |
|
178 | + | } |
|
165 | 179 | }; |
|
166 | 180 | ||
167 | 181 | template <typename T> |
194 | 208 | return a; |
|
195 | 209 | } |
|
196 | 210 | ||
211 | + | template <typename T, typename U> |
|
212 | + | vector_type2<T> operator+(vector_type2<T> a, U b) { |
|
213 | + | a += b; |
|
214 | + | return a; |
|
215 | + | } |
|
216 | + | ||
197 | 217 | template <typename T> |
|
198 | 218 | vector_type2<T> operator-(vector_type2<T> a, const vector_type2<T> &b) { |
|
199 | 219 | a -= b; |
|
200 | 220 | return a; |
|
201 | 221 | } |
|
202 | 222 | ||
223 | + | template <typename T, typename U> |
|
224 | + | vector_type2<T> operator-(vector_type2<T> a, U b) { |
|
225 | + | a -= b; |
|
226 | + | return a; |
|
227 | + | } |
|
228 | + | ||
203 | 229 | template <typename T> |
|
204 | 230 | struct vector_type4 { |
|
205 | 231 | union { |
250 | 276 | return *this; |
|
251 | 277 | } |
|
252 | 278 | ||
279 | + | template <typename U> |
|
280 | + | const vector_type4& operator+=(U o) { |
|
281 | + | s0 += o; |
|
282 | + | s1 += o; |
|
283 | + | s2 += o; |
|
284 | + | s3 += o; |
|
285 | + | return *this; |
|
286 | + | } |
|
287 | + | ||
253 | 288 | const vector_type4& operator-=(const vector_type4 &o) { |
|
254 | 289 | s0 -= o.s0; |
|
255 | 290 | s1 -= o.s1; |
|
256 | 291 | s2 -= o.s2; |
|
257 | 292 | s3 -= o.s3; |
|
258 | 293 | return *this; |
|
259 | 294 | } |
|
295 | + | ||
296 | + | template <typename U> |
|
297 | + | const vector_type4& operator-=(U o) { |
|
298 | + | s0 -= o; |
|
299 | + | s1 -= o; |
|
300 | + | s2 -= o; |
|
301 | + | s3 -= o; |
|
302 | + | return *this; |
|
303 | + | } |
|
260 | 304 | }; |
|
261 | 305 | ||
262 | 306 | template <typename T> |
289 | 333 | return a; |
|
290 | 334 | } |
|
291 | 335 | ||
336 | + | template <typename T, typename U> |
|
337 | + | vector_type4<T> operator+(vector_type4<T> a, U b) { |
|
338 | + | a += b; |
|
339 | + | return a; |
|
340 | + | } |
|
341 | + | ||
292 | 342 | template <typename T> |
|
293 | 343 | vector_type4<T> operator-(vector_type4<T> a, const vector_type4<T> &b) { |
|
294 | 344 | a -= b; |
|
295 | 345 | return a; |
|
296 | 346 | } |
|
297 | 347 | ||
348 | + | template <typename T, typename U> |
|
349 | + | vector_type4<T> operator-(vector_type4<T> a, U b) { |
|
350 | + | a -= b; |
|
351 | + | return a; |
|
352 | + | } |
|
353 | + | ||
298 | 354 | #define VECTOR_TYPES(T) \ |
|
299 | 355 | typedef vector_type2<T> T ## 2; \ |
|
300 | 356 | typedef vector_type4<T> T ## 3; \ |
Learn more Showing 19 files with coverage changes found.
vexcl/spmat.hpp
tests/scan_by_key.cpp
vexcl/sparse/distributed.hpp
vexcl/random/threefry.hpp
vexcl/random/philox.hpp
vexcl/fft/kernels.hpp
vexcl/random.hpp
tests/context.cpp
vexcl/backend/jit/kernel.hpp
vexcl/backend/jit/compiler.hpp
vexcl/backend/jit/filter.hpp
vexcl/backend/jit/source.hpp
vexcl/backend/jit/device_vector.hpp
vexcl/backend/jit/context.hpp
vexcl/sort.hpp
examples/devlist.cpp
vexcl/stencil.hpp
vexcl/backend/common.hpp
tests/svm.cpp
Files | Coverage |
---|---|
tests | -0.04% 98.79% |
vexcl | 0.01% 94.29% |
CL/cl.hpp | 85.20% |
examples/devlist.cpp | 0.32% 96.15% |
Project Totals (122 files) | 94.82% |
0ef6a6c
0ac7e76
857cc89
35080d7