• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

INSTALLH A D13-Oct-2006950 4025

READMEH A D13-Oct-20064.6 KiB12190

ccsds.hH A D13-Oct-2006105 64

char.hH A D13-Oct-2006538 2513

config.guessH A D06-Apr-200743.5 KiB1,5171,305

config.h.inH A D13-Oct-2006522 2013

config.subH A D13-Oct-200626.9 KiB1,3631,223

configureH A D13-Oct-2006126.6 KiB4,3583,631

configure.inH A D03-May-20221.8 KiB8477

cpu_features.sH A D13-Oct-2006184 1514

cpu_mode.cH A D03-May-20221.3 KiB5645

cpu_mode_ppc.cH A D13-Oct-2006955 4129

cpu_mode_x86.cH A D13-Oct-2006853 3423

decode_rs.cH A D13-Oct-20066.7 KiB263196

decode_rs.hH A D13-Oct-20068.2 KiB299204

decode_rs_8.cH A D13-Oct-2006442 2513

decode_rs_ccsds.cH A D13-Oct-2006691 2714

decode_rs_char.cH A D13-Oct-2006453 2312

decode_rs_int.cH A D13-Oct-2006425 2312

dotprod.cH A D03-May-20221.9 KiB10077

dotprod.hH A D13-Oct-2006448 164

dotprod_av.cH A D03-May-20222.6 KiB9557

dotprod_mmx.cH A D13-Oct-20062.3 KiB8238

dotprod_mmx_assist.sH A D13-Oct-20061.7 KiB8471

dotprod_port.cH A D13-Oct-20061.2 KiB5934

dotprod_sse2.cH A D13-Oct-20061.9 KiB7341

dotprod_sse2_assist.sH A D13-Oct-20061.6 KiB8673

dsp.3H A D13-Oct-20062.3 KiB6449

dtest.cH A D13-Oct-20062 KiB10083

encode_rs.cH A D13-Oct-20061.2 KiB5338

encode_rs.hH A D13-Oct-20062.3 KiB5922

encode_rs_8.cH A D03-May-20223.1 KiB11789

encode_rs_av.cH A D03-May-20222 KiB6342

encode_rs_ccsds.cH A D07-Aug-2007676 2511

encode_rs_char.cH A D13-Oct-2006325 167

encode_rs_int.cH A D13-Oct-2006323 167

exercise.cH A D13-Oct-20062.9 KiB12398

fec.cH A D13-Oct-20061.3 KiB6752

fec.hH A D03-May-202212.9 KiB348252

fixed.hH A D13-Oct-2006785 3422

gen_ccsds.cH A D13-Oct-2006869 4032

gen_ccsds_tal.cH A D13-Oct-20061.5 KiB5431

init_rs.cH A D13-Oct-2006896 4019

init_rs.hH A D13-Oct-20062.6 KiB10782

init_rs_char.cH A D13-Oct-2006848 3616

init_rs_int.cH A D13-Oct-2006845 3616

install-shH A D13-Oct-20065.5 KiB252153

int.hH A D13-Oct-2006534 2313

makefile.inH A D03-May-20225.3 KiB239151

mmxbfly27.sH A D13-Oct-20063.4 KiB149120

mmxbfly29.sH A D13-Oct-20063.7 KiB162133

peak_mmx_assist.sH A D13-Oct-20061.2 KiB7161

peak_sse2_assist.sH A D13-Oct-2006995 5242

peak_sse_assist.sH A D13-Oct-2006925 5040

peaktest.cH A D13-Oct-2006797 3928

peakval.cH A D13-Oct-2006750 4031

peakval_av.cH A D03-May-20221.8 KiB6344

peakval_mmx.cH A D13-Oct-2006533 3526

peakval_mmx_assist.sH A D13-Oct-20061.3 KiB7161

peakval_port.cH A D13-Oct-2006274 1712

peakval_sse.cH A D13-Oct-2006540 3627

peakval_sse2.cH A D13-Oct-2006544 3527

peakval_sse2_assist.sH A D13-Oct-20061 KiB5242

peakval_sse_assist.sH A D13-Oct-2006953 5040

rs-common.hH A D13-Oct-2006935 2719

rs.3H A D13-Oct-20067.6 KiB199152

rs_speedtest.cH A D13-Oct-20061.5 KiB5545

rstest.cH A D13-Oct-20067.3 KiB297232

sim.cH A D13-Oct-20061,016 4432

simd-viterbi.3H A D13-Oct-200610.3 KiB248223

sqtest.cH A D13-Oct-2006883 4331

sse2bfly27.sH A D13-Oct-20065.5 KiB203168

sse2bfly29.sH A D13-Oct-20065.8 KiB246211

ssebfly27.sH A D13-Oct-20064.7 KiB206168

ssebfly29.sH A D13-Oct-20066.5 KiB272240

sumsq.cH A D13-Oct-2006841 4129

sumsq_av.cH A D03-May-20222.5 KiB8053

sumsq_mmx.cH A D13-Oct-2006849 3618

sumsq_mmx_assist.sH A D13-Oct-20061.7 KiB8473

sumsq_port.cH A D13-Oct-2006371 178

sumsq_sse2.cH A D13-Oct-2006810 3418

sumsq_sse2_assist.sH A D13-Oct-20061.2 KiB5042

sumsq_test.cH A D13-Oct-20062 KiB10292

viterbi27.cH A D13-Oct-20063.4 KiB162141

viterbi27_av.cH A D03-May-20226.7 KiB212145

viterbi27_mmx.cH A D13-Oct-20062.9 KiB11685

viterbi27_port.cH A D13-Oct-20064.6 KiB192145

viterbi27_sse.cH A D13-Oct-20062.9 KiB11479

viterbi27_sse2.cH A D13-Oct-20065.4 KiB181123

viterbi29.cH A D13-Oct-20063.3 KiB153133

viterbi29_av.cH A D03-May-20225.7 KiB193138

viterbi29_mmx.cH A D13-Oct-20062.9 KiB11985

viterbi29_port.cH A D13-Oct-20064.1 KiB167115

viterbi29_sse.cH A D13-Oct-20063 KiB11578

viterbi29_sse2.cH A D13-Oct-20063.1 KiB12079

viterbi39.cH A D13-Oct-20063.3 KiB154133

viterbi39_av.cH A D03-May-20228.7 KiB253164

viterbi39_mmx.cH A D13-Oct-20065.5 KiB186125

viterbi39_port.cH A D13-Oct-20064.3 KiB169118

viterbi39_sse.cH A D13-Oct-20066 KiB202141

viterbi39_sse2.cH A D13-Oct-20066.3 KiB201135

viterbi615.cH A D13-Oct-20063.4 KiB156133

viterbi615_av.cH A D03-May-20228.9 KiB259171

viterbi615_mmx.cH A D13-Oct-20065.5 KiB184125

viterbi615_port.cH A D13-Oct-20064.3 KiB157116

viterbi615_sse.cH A D13-Oct-20066.2 KiB202142

viterbi615_sse2.cH A D13-Oct-20066.6 KiB205138

vtest27.cH A D13-Oct-20064.7 KiB185157

vtest29.cH A D13-Oct-20064.7 KiB186157

vtest39.cH A D13-Oct-20064.8 KiB187158

vtest615.cH A D13-Oct-20065 KiB192163

README

1COPYRIGHT
2
3This package is copyright 2006 by Phil Karn, KA9Q. It may be used
4under the terms of the GNU Lesser General Public License (LGPL). See
5the file "lesser.txt" in this package for license details.
6
7INTRODUCTION
8
9This package provides a set of functions that implement several
10popular forward error correction (FEC) algorithms and several low-level routines
11useful in modems implemented with digital signal processing (DSP).
12
13The following routines are provided:
14
151. Viterbi decoders for the following convolutional codes:
16
17r=1/2 k=7 ("Voyager" code, now a widely used industry standard)
18r=1/2 k=9 (Used on the IS-95 CDMA forward link)
19r=1/6 k=15 ("Cassini" code, used by several NASA/JPL deep space missions)
20
212. Reed-Solomon encoders and decoders for any user-specified code.
22
233. Optimized encoder and decoder for the CCSDS-standard (255,223)
24Reed-Solomon code, with and without the CCSDS-standard "dual basis"
25symbol representation.
26
274. Compute dot product between a 16-bit buffer and a set of 16-bit
28coefficients. This is the basic DSP primitive for digital filtering
29and correlation.
30
314. Compute sum of squares of a buffer of 16-bit signed integers. This is
32useful in DSP for finding the total energy in a signal.
33
345. Find peak value in a buffer of 16-bit signed integers, useful for
35scaling a signal to prevent overflow.
36
37SIMD SUPPORT
38
39This package automatically makes use of various SIMD (Single
40Instruction stream, Multiple Data stream) instruction sets, when
41available: MMX, SSE and SSE2 on the IA-32 (Intel) architecture, and
42Altivec on the PowerPC G4 and G5 used by Power Macintoshes.
43
44"Altivec" is a Motorola trademark; Apple calls it "Velocity Engine",
45and IBM calls it "VMX". Altivec is roughly comparable to SSE2 on the
46IA-32.
47
48Many of the SIMD versions run more than an order of
49magnitude faster than their portable C versions. The available SIMD
50instruction sets, if any, are determined at run time and the proper
51version of each routine is automatically selected. If no SIMD
52instructions are available, the portable C version is invoked by
53default. On targets other than IA-32 and PPC, only the portable C
54version is built.
55
56The SIMD-assisted versions generally produce the same results as the C
57versions, with a few minor exceptions. The Viterbi decoders in C have
58a very slightly greater Eb/No performance due to their use of 32-bit
59path metrics. On the other hand, the SIMD versions use the
60"saturating" arithmetic available in these instructions to avoid the
61integer wraparounds that can occur in C when argument ranges are not
62properly constrained. This applies primarily to the "dotprod" (dot
63product) function.
64
65The MMX (MultiMedia eXtensions) instruction set was introduced on
66later Pentium CPUs; it is also implemented on the Pentium II and most
67AMD CPUs starting with the K6. SSE (SIMD Streaming Extensions) was
68introduced in the Pentium III; AMD calls it "3D Now! Professional".
69Intel introduced SSE2 on the Pentium 4, and it has been picked up by
70later AMD CPUs. SSE support implies MMX support, while SSE2 support
71implies both SSE and MMX support.
72
73The latest IA-32 SIMD instruction set, SSE3 (also known as "Prescott
74New Instructions") was introduced in early 2004 with the latest
75("Prescott") revision of the Pentium 4. Relatively little was
76introduced with SSE3, and this library currently makes no use of it.
77
78See the various manual pages for details on how to use the library
79routines.
80
81Copyright 2006, Phil Karn, KA9Q
82karn@ka9q.net
83http://www.ka9q.net/
84
85This software may be used under the terms of the GNU Lesser General
86Public License (LGPL); see the file lesser.txt for details.
87
88Revision history:
89Version 1.0 released 29 May 2001
90
91Version 2.0 released 3 Dec 2001:
92Restructured to add support for shared libraries.
93
94Version 2.0.1 released 8 Dec 2001:
95Includes autoconf/configure script
96
97Version 2.0.2 released 4 Feb 2002:
98Add SIMD version override options
99Test for lack of SSE2 mnemonic support in 'as'
100Build only selected version
101
102Version 2.0.3 released 6 Feb 2002:
103Fix to parityb function in parity.h
104
105feclib version 1.0 released November 2003
106Merged SIMD-Viterbi, RS and DSP libraries
107Changed SIMD Viterbi decoder to detect SSE2/SSE/MMX at runtime rather than build time
108
109feclib version 2.0 (unreleased) Mar 2004
110General speedups and cleanups
111Switch from 4 to 8-bit input symbols on all Viterbi decoders
112Support for Altivec on PowerPC
113Support for k=15 r=1/6 Cassini/Mars Pathfinder/Mars Exploration Rover/STEREO code
114Changed license to GNU Lesser General Public License (LGPL)
115
116feclib version 2.1 June 5 2006
117Added error checking, fixed alignment bug in SSE2 versions of Viterbi decoders causing segfaults
118
119feclib version 2.1.1 June 6 2006
120Fix test/benchmark time measurement on Linux
121