mirror of
https://git.vladimir.cc/vladimir/libfec.git
synced 2026-08-25 17:27:34 +00:00
init commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user