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

cmake: try baseline optimization feature check without extra flags first

This commit is contained in:
Alexander Alekhin
2024-07-18 05:37:14 +00:00
parent 78195bc3df
commit 938b9e4bb7
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;
}