1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Merge pull request #25930 from opencv-pushbot:gitee/alalek/cmake_try_detect_feature_without_flags

This commit is contained in:
Alexander Alekhin
2024-08-01 20:09:49 +00:00
2 changed files with 17 additions and 3 deletions
+15 -1
View File
@@ -1,2 +1,16 @@
#include <emmintrin.h>
int main() { return 0; }
inline __m128i _v128_comgt_epu32(const __m128i& a, const __m128i& b)
{
const __m128i delta = _mm_set1_epi32((int)0x80000000);
return _mm_cmpgt_epi32(_mm_xor_si128(a, delta), _mm_xor_si128(b, delta));
}
int main()
{
__m128i a, b, c;
a = _mm_set1_epi32(0x00000000);
b = _mm_set1_epi32(0x0000ffff);
c = _v128_comgt_epu32(a, b);
return 0;
}