ddemidov / vexcl
Showing 1 of 1 files from the diff.

@@ -208,12 +208,24 @@
Loading
208 208
    return a;
209 209
}
210 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 +
211 217
template <typename T>
212 218
vector_type2<T> operator-(vector_type2<T> a, const vector_type2<T> &b) {
213 219
    a -= b;
214 220
    return a;
215 221
}
216 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 +
217 229
template <typename T>
218 230
struct vector_type4 {
219 231
    union {
@@ -264,6 +276,15 @@
Loading
264 276
        return *this;
265 277
    }
266 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 +
267 288
    const vector_type4& operator-=(const vector_type4 &o) {
268 289
        s0 -= o.s0;
269 290
        s1 -= o.s1;
@@ -271,6 +292,15 @@
Loading
271 292
        s3 -= o.s3;
272 293
        return *this;
273 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 +
    }
274 304
};
275 305
276 306
template <typename T>
@@ -303,12 +333,24 @@
Loading
303 333
    return a;
304 334
}
305 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 +
306 342
template <typename T>
307 343
vector_type4<T> operator-(vector_type4<T> a, const vector_type4<T> &b) {
308 344
    a -= b;
309 345
    return a;
310 346
}
311 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 +
312 354
#define VECTOR_TYPES(T) \
313 355
    typedef vector_type2<T> T ## 2; \
314 356
    typedef vector_type4<T> T ## 3; \
Files Coverage
tests 98.79%
vexcl 94.29%
CL/cl.hpp 85.20%
examples/devlist.cpp 96.15%
Project Totals (122 files) 94.82%
1428.1
TRAVIS_OS_NAME=linux
1428.2
TRAVIS_OS_NAME=linux
1428.3
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading