search for: flac__cpu_info_sse_test_asm_ia32

Displaying 1 result from an estimated 1 matches for "flac__cpu_info_sse_test_asm_ia32".

2004 Sep 10
1
checking OS support for SSE
...perating system support? */ + info->data.ia32.sse2 = (cpuid & FLAC__CPUINFO_IA32_CPUID_SSE2)? true : false; + +#ifndef FLAC__SSE_OS +#ifndef NO_VFORK + if(info->data.ia32.sse == true || info->data.ia32.sse2 == true) { + int pid, status, sse; + pid = vfork(); + if(!pid) { + FLAC__cpu_info_sse_test_asm_ia32(); + exit(0); + } + sse = 0; + if(pid > 0) { + waitpid(pid, &status, 0); + if(WIFEXITED(status) && WEXITSTATUS(status) == 0) + sse = 1; /* there was normal exit, no SIGILL */ + } + if(!sse) + info->data.ia32.sse = info->data.ia32.sse2 = false; + } +...