1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-10-31 15:07:12 -04:00
sdrangel/cmake/test/test_x86_sse2.cxx
Davide Gerhard 6e80780d17
cmake: windows fixes for MSVC
- disable sdrangelbench on windows with MSVC
- fix cpu flags test code for MSVC
- add ico file
2019-05-28 15:19:12 +02:00

16 lines
272 B
C++

#include <signal.h>
#include <stdlib.h>
#include <emmintrin.h>
void signalHandler(int signum) {
exit(signum); // SIGILL = 4
}
int main(int argc, char* argv[])
{
signal(SIGILL, signalHandler);
__m128i x = _mm_setzero_si128();
x=_mm_add_epi64(x,x);
return 0;
}