comparison cpudetect.c @ 14455:d94e79aecd69

assume OS support SSE on x86_64
author aurel
date Mon, 10 Jan 2005 18:33:51 +0000
parents 821f464b4d90
children d04cbfe4ea8d
comparison
equal deleted inserted replaced
14454:3a6e55cd6e64 14455:d94e79aecd69
318 * and RedHat patched 2.2 kernels that have broken exception handling 318 * and RedHat patched 2.2 kernels that have broken exception handling
319 * support for user space apps that do SSE. 319 * support for user space apps that do SSE.
320 */ 320 */
321 static void check_os_katmai_support( void ) 321 static void check_os_katmai_support( void )
322 { 322 {
323 #if defined(__FreeBSD__) 323 #ifdef ARCH_X86_64
324 gCpuCaps.hasSSE=1;
325 gCpuCaps.hasSSE2=1;
326 #elif defined(__FreeBSD__)
324 int has_sse=0, ret; 327 int has_sse=0, ret;
325 size_t len=sizeof(has_sse); 328 size_t len=sizeof(has_sse);
326 329
327 ret = sysctlbyname("hw.instruction_sse", &has_sse, &len, NULL, 0); 330 ret = sysctlbyname("hw.instruction_sse", &has_sse, &len, NULL, 0);
328 if (ret || !has_sse) 331 if (ret || !has_sse)