Files
libfec/cpu_mode_generic.c
T
2026-06-22 11:39:50 +03:00

22 lines
685 B
C

/* Portable CPU-mode selection for libfec.
*
* The legacy SIMD path (cpu_features.s + cpu_mode_x86.c) is 32-bit x86
* assembly and does not assemble on x86_64 or other architectures. The
* viterbi27/29/615 dispatchers only compile their SSE/MMX/Altivec cases
* under __i386__ / __VEC__, so on every other target the PORT (generic C)
* path is the only one available — forcing PORT here is correct and fully
* portable. Replaces both cpu_mode_x86.o and cpu_features.o.
*/
#include "fec.h"
char *Cpu_modes[] = {"Unknown","Portable C","MMX","SSE","SSE2","Altivec"};
enum cpu_mode Cpu_mode;
void find_cpu_mode(void){
Cpu_mode = PORT;
}
int cpu_features(void){
return 0;
}