Check for altivec assembly support before trying to use it. :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40796
This commit is contained in:
parent
ac5cdde4c1
commit
fdf58b5852
2 changed files with 28 additions and 7 deletions
|
@ -236,7 +236,7 @@ static __inline__ int CPU_haveAltiVec()
|
|||
int error = sysctl(selectors, 2, &hasVectorUnit, &length, NULL, 0);
|
||||
if( 0 == error )
|
||||
altivec = (hasVectorUnit != 0);
|
||||
#elseif defined(USE_SETJMP) && defined(__GNUC__) && defined(__powerpc__)
|
||||
#elif defined(USE_SETJMP) && defined(GCC_ALTIVEC)
|
||||
void (*handler)(int sig);
|
||||
handler = signal(SIGILL, illegal_instruction);
|
||||
if ( setjmp(jmpbuf) == 0 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue