init commit

This commit is contained in:
2026-06-22 11:39:50 +03:00
commit ba6f1bde22
128 changed files with 17716 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/* 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;
}