You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.7 KiB

10 years ago
Index: dotprod.c
--- dotprod.c.orig 2006-10-13 03:10:53.000000000 +0200
+++ dotprod.c 2016-03-26 18:36:45.267295423 +0100
@@ -54,12 +54,16 @@
switch(Cpu_mode){
case PORT:
default:
+ freedp_port(p);
+ break;
#ifdef __i386__
case MMX:
case SSE:
- return freedp_mmx(p);
+ freedp_mmx(p);
+ break;
case SSE2:
- return freedp_sse2(p);
+ freedp_sse2(p);
+ break;
#endif
#ifdef __VEC__
case ALTIVEC:
Index: fec.h
--- fec.h.orig 2006-10-13 03:10:53.000000000 +0200
+++ fec.h 2016-03-26 18:36:45.267295423 +0100
@@ -262,7 +262,7 @@
void find_cpu_mode(void); /* Call this once at startup to set Cpu_mode */
/* Determine parity of argument: 1 = odd, 0 = even */
-#ifdef __i386__
+#ifdef notyet__i386__
static inline int parityb(unsigned char x){
__asm__ __volatile__ ("test %1,%1;setpo %0" : "=g"(x) : "r" (x));
return x;
Index: makefile.in
--- makefile.in.orig 2006-10-13 03:10:53.000000000 +0200
+++ makefile.in 2016-03-26 18:37:19.768255531 +0100
@@ -43,8 +43,6 @@
install: all
mkdir -p @libdir@
install -m 644 -p $(SHARED_LIB) libfec.a @libdir@
-# (cd @libdir@;ln -f -s $(SHARED_LIB) libfec.so)
- @REBIND@
mkdir -p @includedir@
install -m 644 -p fec.h @includedir@
mkdir -m 0755 -p @mandir@/man3
@@ -146,10 +144,10 @@
./gen_ccsds > ccsds_tab.c
gen_ccsds: gen_ccsds.o init_rs_char.o
- gcc -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^
gen_ccsds.o: gen_ccsds.c
- gcc $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) -c -o $@ $<
ccsds_tal.o: ccsds_tal.c
@@ -157,7 +155,7 @@
./gen_ccsds_tal > ccsds_tal.c
exercise_char.o: exercise.c
- gcc $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) -c -o $@ $<
exercise_int.o: exercise.c
gcc -DBIGSYM=1 $(CFLAGS) -c -o $@ $<