diff options
-rw-r--r-- | INSTALL | 4 | ||||
-rw-r--r-- | README | 3 | ||||
-rwxr-xr-x | bootstrap | 5 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | cpu_mode_generic.c | 13 |
5 files changed, 25 insertions, 2 deletions
@@ -2,6 +2,7 @@ INSTALLATION INSTRUCTIONS To build and install the libfec libraries, simply say +./bootstrap ./configure make make test (optional) @@ -35,5 +36,6 @@ broken. 28 Mar 2004 Phil Karn, karn@ka9q.net - +3 Jan 2014 +Matthias P. Braendli, matthias@mpb.li @@ -4,6 +4,9 @@ This package is copyright 2006 by Phil Karn, KA9Q. It may be used under the terms of the GNU Lesser General Public License (LGPL). See the file "lesser.txt" in this package for license details. +It has been modified by Matthias P. Braendli, HB9EGM, so that it +compiles for x86_64 and for arm. + INTRODUCTION This package provides a set of functions that implement several diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..e5fa09c --- /dev/null +++ b/bootstrap @@ -0,0 +1,5 @@ +#!/bin/bash + +aclocal && \ +autoconf + diff --git a/configure.in b/configure.in index 03d78c4..10b5380 100644 --- a/configure.in +++ b/configure.in @@ -66,7 +66,7 @@ powerpc*) dotprod_av.o sumsq_av.o peakval_av.o cpu_mode_ppc.o" ;; *) - MLIBS= + MLIBS="cpu_mode_generic.o" esac case $target_os in darwin*) diff --git a/cpu_mode_generic.c b/cpu_mode_generic.c new file mode 100644 index 0000000..500f995 --- /dev/null +++ b/cpu_mode_generic.c @@ -0,0 +1,13 @@ +/* Determine CPU support for SIMD on Power PC + * Copyright 2004 Phil Karn, KA9Q + * Copyright 2014 Matthias P. Braendli, HB9EGM + */ +#include <stdio.h> +#include "fec.h" + +enum cpu_mode Cpu_mode; + +// Use the portable code for this unknown CPU +void find_cpu_mode(void) { + Cpu_mode = PORT; +} |