-#if defined(__APPLE__) && (defined(__ppc__) || defined(__ppc64__))
- int selectors[2] = { CTL_HW, HW_VECTORUNIT };
- int i_has_altivec = 0;
- size_t i_length = sizeof( i_has_altivec );
- int i_error = sysctl( selectors, 2, &i_has_altivec, &i_length, NULL, 0);
-
- i_capabilities |= CPU_CAPABILITY_FPU;
-
- if( i_error == 0 && i_has_altivec != 0 )
- i_capabilities |= CPU_CAPABILITY_ALTIVEC;
-
- return i_capabilities;
-
-#elif defined( __i386__ ) || defined( __x86_64__ )