Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 830185
Collapse All | Expand All

(-)opencv-4.5.5.orig/modules/gapi/src/backends/fluid/gfluidcore_simd_sse41.hpp (+19 lines)
Lines 30-35 Link Here
30
namespace fluid {
30
namespace fluid {
31
namespace sse42 {
31
namespace sse42 {
32
32
33
#ifdef __i386__
34
/**
35
 * Inspired by https://lists.freebsd.org/pipermail/p4-projects/2014-December/039272.html
36
 */
37
static inline __m128i
38
_mm_insert_epi64(__m128i a, int64_t b, const int ndx)
39
{  
40
    if (!ndx) {
41
        a = _mm_insert_epi32(a, b, 0);
42
        a = _mm_insert_epi32(a, b >> 32, 1);
43
    } else {
44
        a = _mm_insert_epi32(a, b, 2);
45
        a = _mm_insert_epi32(a, b >> 32, 3);
46
    }
47
48
    return a;
49
}
50
#endif
51
33
CV_ALWAYS_INLINE void v_gather_pixel_map(v_uint8x16& vec, const uchar src[], const short* index, const int pos)
52
CV_ALWAYS_INLINE void v_gather_pixel_map(v_uint8x16& vec, const uchar src[], const short* index, const int pos)
34
{
53
{
35
    const int chanNum = 4;
54
    const int chanNum = 4;

Return to bug 830185