comparison cpudetect.c @ 9324:300649f96e22

1l
author alex
date Fri, 07 Feb 2003 21:58:09 +0000
parents 5ba896a38d75
children 890f35b31edd
comparison
equal deleted inserted replaced
9323:774afe44f17b 9324:300649f96e22
477 err = sysctl(sels, 2, &has_vu, &len, NULL, 0); 477 err = sysctl(sels, 2, &has_vu, &len, NULL, 0);
478 478
479 if (err == 0) 479 if (err == 0)
480 if (has_vu != 0) 480 if (has_vu != 0)
481 caps->hasAltiVec = 1; 481 caps->hasAltiVec = 1;
482 mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
483 } 482 }
484 #else /* SYS_DARWIN */ 483 #else /* SYS_DARWIN */
485 /* no Darwin, do it the brute-force way */ 484 /* no Darwin, do it the brute-force way */
486 /* this is borrowed from the libmpeg2 library */ 485 /* this is borrowed from the libmpeg2 library */
487 { 486 {
499 signal (SIGILL, SIG_DFL); 498 signal (SIGILL, SIG_DFL);
500 caps->hasAltiVec = 1; 499 caps->hasAltiVec = 1;
501 } 500 }
502 } 501 }
503 #endif /* SYS_DARWIN */ 502 #endif /* SYS_DARWIN */
503 mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
504 #endif /* HAVE_ALTIVEC */ 504 #endif /* HAVE_ALTIVEC */
505 } 505 }
506 #endif /* !ARCH_X86 */ 506 #endif /* !ARCH_X86 */