GAPI Fluid Resize: Fix for 32bit build issue.#21628
GAPI Fluid Resize: Fix for 32bit build issue.#21628opencv-pushbot merged 1 commit intoopencv:4.xfrom
Conversation
fbd616e to
ddd16d0
Compare
sivanov-work
left a comment
There was a problem hiding this comment.
Sorry for confusion: i had approved PR already, but looks like that CI still failed - it's the reason why i 've revoked my approval.
ddd16d0 to
b0ecd1b
Compare
b0ecd1b to
6b6d89b
Compare
| pix1 = _mm_lddqu_si128(reinterpret_cast<const __m128i*>(&tmp[4 * (chanNum * mapsx[x + 4])])); | ||
| #if defined(__i386__) || defined(_M_IX86) | ||
| pix2 = _mm_castpd_si128(_mm_load_sd(reinterpret_cast<const double*>(&tmp[4 * (chanNum * (mapsx[x + 4] + 1))]))); | ||
| #else |
There was a problem hiding this comment.
Is there any opencv define in this case?
As example, i've found code in modules\videoio\src\cap_pvapi.cpp
#if defined(_x64) || defined (__x86_64) || defined (_M_X64)
#define _x64 1
#elif defined(_x86) || defined(__i386) || defined (_M_IX86)
#define _x86 1
#endif
where _x86 as considered as valuable too
There was a problem hiding this comment.
There is no such definition.
Defining global variable without CV_ prefix and with _ is dangerous. It should be avoided, especially in public headers.
OpenCV SIMD wrappers uses this:
There was a problem hiding this comment.
bad example - my fault
i considered _x64 as yet another one MACRO to check in current sequence: didn't focus that it declared as custom new MACRO
sivanov-work
left a comment
There was a problem hiding this comment.
LGTM (if tests are passed)
|
@anna-khakimova I have a trouble to download opencv install file for windows 32bit. |
|
@dreamsoftech We don't redistribute OpenCV binaries for 32-bit Windows. You have to build OpenCV from sources to get this custom configuration. |
Due to upstream has fixed the issue [1], revert [3f26c46 opencv: disable sse4.1 and sse4.2 on x86] [1] opencv/opencv#21628 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Fix for 32bit build issue in the Resize.
Validate: