comparison cpudetect.c @ 9122:5ba896a38d75

The two attached patches *should* allow for proper compilation of the AltiVec stuff on both Darwin and non-Darwin system. They've only been tested for compilation on Debian using Debian's gcc-3.2. Romain Dolbeau <dolbeau@irisa.fr>
author arpi
date Mon, 27 Jan 2003 21:47:25 +0000
parents c428933c7e54
children 300649f96e22
comparison
equal deleted inserted replaced
9121:57605e30cda4 9122:5ba896a38d75
490 signal (SIGILL, SIG_DFL); 490 signal (SIGILL, SIG_DFL);
491 } else { 491 } else {
492 canjump = 1; 492 canjump = 1;
493 493
494 asm volatile ("mtspr 256, %0\n\t" 494 asm volatile ("mtspr 256, %0\n\t"
495 "vand v0, v0, v0" 495 "vand %%v0, %%v0, %%v0"
496 : 496 :
497 : "r" (-1)); 497 : "r" (-1));
498 498
499 signal (SIGILL, SIG_DFL); 499 signal (SIGILL, SIG_DFL);
500 caps->hasAltiVec = 1; 500 caps->hasAltiVec = 1;