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.
jianglk.darker 7ee447c011
v811_spc009_project
4 months ago
..
Android.bp v811_spc009_project 4 months ago
CleanSpec.mk v811_spc009_project 4 months ago
INSTALL v811_spc009_project 4 months ago
METADATA v811_spc009_project 4 months ago
MODULE_LICENSE_LGPL v811_spc009_project 4 months ago
NOTICE v811_spc009_project 4 months ago
OWNERS v811_spc009_project 4 months ago
README v811_spc009_project 4 months ago
ccsds.h v811_spc009_project 4 months ago
char.h v811_spc009_project 4 months ago
config.guess v811_spc009_project 4 months ago
config.h.in v811_spc009_project 4 months ago
config.sub v811_spc009_project 4 months ago
configure v811_spc009_project 4 months ago
configure.in v811_spc009_project 4 months ago
cpu_features.s v811_spc009_project 4 months ago
cpu_mode_ppc.c v811_spc009_project 4 months ago
cpu_mode_x86.c v811_spc009_project 4 months ago
decode_rs.c v811_spc009_project 4 months ago
decode_rs.h v811_spc009_project 4 months ago
decode_rs_8.c v811_spc009_project 4 months ago
decode_rs_ccsds.c v811_spc009_project 4 months ago
decode_rs_char.c v811_spc009_project 4 months ago
decode_rs_int.c v811_spc009_project 4 months ago
dotprod.c v811_spc009_project 4 months ago
dotprod.h v811_spc009_project 4 months ago
dotprod_av.c v811_spc009_project 4 months ago
dotprod_mmx.c v811_spc009_project 4 months ago
dotprod_mmx_assist.s v811_spc009_project 4 months ago
dotprod_port.c v811_spc009_project 4 months ago
dotprod_sse2.c v811_spc009_project 4 months ago
dotprod_sse2_assist.s v811_spc009_project 4 months ago
dsp.3 v811_spc009_project 4 months ago
dtest.c v811_spc009_project 4 months ago
encode_rs.c v811_spc009_project 4 months ago
encode_rs.h v811_spc009_project 4 months ago
encode_rs_8.c v811_spc009_project 4 months ago
encode_rs_av.c v811_spc009_project 4 months ago
encode_rs_ccsds.c v811_spc009_project 4 months ago
encode_rs_char.c v811_spc009_project 4 months ago
encode_rs_int.c v811_spc009_project 4 months ago
exercise.c v811_spc009_project 4 months ago
fec.c v811_spc009_project 4 months ago
fec.h v811_spc009_project 4 months ago
fixed.h v811_spc009_project 4 months ago
gen_ccsds.c v811_spc009_project 4 months ago
gen_ccsds_tal.c v811_spc009_project 4 months ago
init_rs.c v811_spc009_project 4 months ago
init_rs.h v811_spc009_project 4 months ago
init_rs_char.c v811_spc009_project 4 months ago
init_rs_int.c v811_spc009_project 4 months ago
install-sh v811_spc009_project 4 months ago
int.h v811_spc009_project 4 months ago
lesser.txt v811_spc009_project 4 months ago
makefile.in v811_spc009_project 4 months ago
mmxbfly27.s v811_spc009_project 4 months ago
mmxbfly29.s v811_spc009_project 4 months ago
peak_mmx_assist.s v811_spc009_project 4 months ago
peak_sse2_assist.s v811_spc009_project 4 months ago
peak_sse_assist.s v811_spc009_project 4 months ago
peaktest.c v811_spc009_project 4 months ago
peakval.c v811_spc009_project 4 months ago
peakval_av.c v811_spc009_project 4 months ago
peakval_mmx.c v811_spc009_project 4 months ago
peakval_mmx_assist.s v811_spc009_project 4 months ago
peakval_port.c v811_spc009_project 4 months ago
peakval_sse.c v811_spc009_project 4 months ago
peakval_sse2.c v811_spc009_project 4 months ago
peakval_sse2_assist.s v811_spc009_project 4 months ago
peakval_sse_assist.s v811_spc009_project 4 months ago
rs-common.h v811_spc009_project 4 months ago
rs.3 v811_spc009_project 4 months ago
rs_speedtest.c v811_spc009_project 4 months ago
rstest.c v811_spc009_project 4 months ago
sim.c v811_spc009_project 4 months ago
simd-viterbi.3 v811_spc009_project 4 months ago
sqtest.c v811_spc009_project 4 months ago
sse2bfly27.s v811_spc009_project 4 months ago
sse2bfly29.s v811_spc009_project 4 months ago
ssebfly27.s v811_spc009_project 4 months ago
ssebfly29.s v811_spc009_project 4 months ago
sumsq.c v811_spc009_project 4 months ago
sumsq_av.c v811_spc009_project 4 months ago
sumsq_mmx.c v811_spc009_project 4 months ago
sumsq_mmx_assist.s v811_spc009_project 4 months ago
sumsq_port.c v811_spc009_project 4 months ago
sumsq_sse2.c v811_spc009_project 4 months ago
sumsq_sse2_assist.s v811_spc009_project 4 months ago
sumsq_test.c v811_spc009_project 4 months ago
viterbi27.c v811_spc009_project 4 months ago
viterbi27_av.c v811_spc009_project 4 months ago
viterbi27_mmx.c v811_spc009_project 4 months ago
viterbi27_port.c v811_spc009_project 4 months ago
viterbi27_sse.c v811_spc009_project 4 months ago
viterbi27_sse2.c v811_spc009_project 4 months ago
viterbi29.c v811_spc009_project 4 months ago
viterbi29_av.c v811_spc009_project 4 months ago
viterbi29_mmx.c v811_spc009_project 4 months ago
viterbi29_port.c v811_spc009_project 4 months ago
viterbi29_sse.c v811_spc009_project 4 months ago
viterbi29_sse2.c v811_spc009_project 4 months ago
viterbi39.c v811_spc009_project 4 months ago
viterbi39_av.c v811_spc009_project 4 months ago
viterbi39_mmx.c v811_spc009_project 4 months ago
viterbi39_port.c v811_spc009_project 4 months ago
viterbi39_sse.c v811_spc009_project 4 months ago
viterbi39_sse2.c v811_spc009_project 4 months ago
viterbi615.c v811_spc009_project 4 months ago
viterbi615_av.c v811_spc009_project 4 months ago
viterbi615_mmx.c v811_spc009_project 4 months ago
viterbi615_port.c v811_spc009_project 4 months ago
viterbi615_sse.c v811_spc009_project 4 months ago
viterbi615_sse2.c v811_spc009_project 4 months ago
vtest27.c v811_spc009_project 4 months ago
vtest29.c v811_spc009_project 4 months ago
vtest39.c v811_spc009_project 4 months ago
vtest615.c v811_spc009_project 4 months ago

README

COPYRIGHT

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.

INTRODUCTION

This package provides a set of functions that implement several
popular forward error correction (FEC) algorithms and several low-level routines
useful in modems implemented with digital signal processing (DSP).

The following routines are provided:

1. Viterbi decoders for the following convolutional codes:

r=1/2 k=7 ("Voyager" code, now a widely used industry standard)
r=1/2 k=9 (Used on the IS-95 CDMA forward link)
r=1/6 k=15 ("Cassini" code, used by several NASA/JPL deep space missions)

2. Reed-Solomon encoders and decoders for any user-specified code.

3. Optimized encoder and decoder for the CCSDS-standard (255,223)
Reed-Solomon code, with and without the CCSDS-standard "dual basis"
symbol representation.

4. Compute dot product between a 16-bit buffer and a set of 16-bit
coefficients. This is the basic DSP primitive for digital filtering
and correlation.

4. Compute sum of squares of a buffer of 16-bit signed integers. This is
useful in DSP for finding the total energy in a signal.

5. Find peak value in a buffer of 16-bit signed integers, useful for
scaling a signal to prevent overflow.

SIMD SUPPORT

This package automatically makes use of various SIMD (Single
Instruction stream, Multiple Data stream) instruction sets, when
available: MMX, SSE and SSE2 on the IA-32 (Intel) architecture, and
Altivec on the PowerPC G4 and G5 used by Power Macintoshes.

"Altivec" is a Motorola trademark; Apple calls it "Velocity Engine",
and IBM calls it "VMX". Altivec is roughly comparable to SSE2 on the
IA-32.

Many of the SIMD versions run more than an order of
magnitude faster than their portable C versions. The available SIMD
instruction sets, if any, are determined at run time and the proper
version of each routine is automatically selected. If no SIMD
instructions are available, the portable C version is invoked by
default. On targets other than IA-32 and PPC, only the portable C
version is built.

The SIMD-assisted versions generally produce the same results as the C
versions, with a few minor exceptions. The Viterbi decoders in C have
a very slightly greater Eb/No performance due to their use of 32-bit
path metrics. On the other hand, the SIMD versions use the
"saturating" arithmetic available in these instructions to avoid the
integer wraparounds that can occur in C when argument ranges are not
properly constrained. This applies primarily to the "dotprod" (dot
product) function.

The MMX (MultiMedia eXtensions) instruction set was introduced on
later Pentium CPUs; it is also implemented on the Pentium II and most
AMD CPUs starting with the K6. SSE (SIMD Streaming Extensions) was
introduced in the Pentium III; AMD calls it "3D Now! Professional".
Intel introduced SSE2 on the Pentium 4, and it has been picked up by
later AMD CPUs. SSE support implies MMX support, while SSE2 support
implies both SSE and MMX support.

The latest IA-32 SIMD instruction set, SSE3 (also known as "Prescott
New Instructions") was introduced in early 2004 with the latest
("Prescott") revision of the Pentium 4. Relatively little was
introduced with SSE3, and this library currently makes no use of it.

See the various manual pages for details on how to use the library
routines.

Copyright 2006, Phil Karn, KA9Q
karn@ka9q.net
http://www.ka9q.net/

This software may be used under the terms of the GNU Lesser General
Public License (LGPL); see the file lesser.txt for details.

Revision history:
Version 1.0 released 29 May 2001

Version 2.0 released 3 Dec 2001:
Restructured to add support for shared libraries.

Version 2.0.1 released 8 Dec 2001:
Includes autoconf/configure script

Version 2.0.2 released 4 Feb 2002:
Add SIMD version override options
Test for lack of SSE2 mnemonic support in 'as'
Build only selected version

Version 2.0.3 released 6 Feb 2002:
Fix to parityb function in parity.h

feclib version 1.0 released November 2003
Merged SIMD-Viterbi, RS and DSP libraries
Changed SIMD Viterbi decoder to detect SSE2/SSE/MMX at runtime rather than build time

feclib version 2.0 (unreleased) Mar 2004
General speedups and cleanups
Switch from 4 to 8-bit input symbols on all Viterbi decoders
Support for Altivec on PowerPC
Support for k=15 r=1/6 Cassini/Mars Pathfinder/Mars Exploration Rover/STEREO code
Changed license to GNU Lesser General Public License (LGPL)

feclib version 2.1 June 5 2006
Added error checking, fixed alignment bug in SSE2 versions of Viterbi decoders causing segfaults

feclib version 2.1.1 June 6 2006
Fix test/benchmark time measurement on Linux