资源简介
RS码的例子,5个实体包,1个冗余包,可以调整比例。
通过FEC编码 forward error correction based on Vandermonde matrices

代码片段和文件信息
/*
* fec.c -- forward error correction based on Vandermonde matrices
* 980624
* (C) 1997-98 Luigi Rizzo (luigi@iet.unipi.it)
*
* Portions derived from code by Phil Karn (karn@ka9q.ampr.org)
* Robert Morelos-Zaragoza (robert@spectra.eng.hawaii.edu) and Hari
* Thirumoorthy (harit@spectra.eng.hawaii.edu) Aug 1995
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above
* copyright notice this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS ‘‘AS IS‘‘ AND
* ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS
* BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY
* OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*/
/*
* The following parameter defines how many bits are used for
* field elements. The code supports any value from 2 to 16
* but fastest operation is achieved with 8 bit elements
* This is the only parameter you may want to change.
*/
#ifndef GF_BITS
#define GF_BITS 8 /* code over GF(2**GF_BITS) - change to suit */
#endif
#include
#include
#include
typedef unsigned long u_long;
/*
* compatibility stuff
*/
#if defined(MSDOS)||defined(__MINGW32__) /* but also for others e.g. sun... */
#define NEED_BCOPY
#define bcmp(abn) memcmp(abn)
#endif
#ifdef NEED_BCOPY
#define bcopy(s d siz) memcpy((d) (s) (siz))
#define bzero(d siz) memset((d) ‘\0‘ (siz))
#endif
/*
* stuff used for testing purposes only
*/
#ifdef TEST
#define DEB(x)
#define DDB(x) x
#define DEBUG 0 /* minimal debugging */
#ifdef MSDOS
#include
struct timeval {
unsigned long ticks;
};
#define gettimeofday(x dummy) { (x)->ticks = clock() ; }
#define DIFF_T(ab) (1+ 1000000*(a.ticks - b.ticks) / CLOCKS_PER_SEC )
typedef unsigned long u_long ;
typedef unsigned short u_short ;
#else /* typically unix systems */
#include
#define DIFF_T(ab) \
(1+ 1000000*(a.tv_sec - b.tv_sec) + (a.tv_usec - b.tv_usec) )
#endif
#define TICK(t) \
{struct timeval x ; \
gettimeofday(&x NULL) ; \
t = x.tv_usec + 1000000* (x.tv_sec & 0xff ) ; \
}
#define TOC
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 24903 2019-09-10 11:45 fec.c
文件 2338 2019-09-10 11:45 fec.h
文件 36 2019-09-10 12:19 git_version.h
文件 527 2019-09-10 12:10 makefile
文件 1354 2019-09-10 12:16 rs.c
文件 1415 2019-09-10 11:43 rs.h
文件 1040501 2019-09-10 12:19 simple_fec
文件 594 2019-09-10 12:19 simple_fec.c
- 上一篇:fft7.v
- 下一篇:RemoveOffice2010完美卸载office2010
相关资源
- The direction of synaptic plasticity mediated
- Reparatory Effects of Nicotine on NMDA Recepto
- Apolipoprotein E4 Impairs in vivo Hippocampal
- Histamine excites rat lateral vestibular nucle
- C 大整数RSA加密
- DXperienceUniversal 10.1.6(2010年8月13日版
- RSA算法源码
- GPRS(MC35型号)的发送短信程序
- UART转CAN或LIN的工具(Uart2any)和文档
- RSA AES DES ECC加密算法源码
- 关于角点检测算法HarrisForstner经典算子
- 51多机通信(内附Proteus及.hex文件)
- CJLibrary Version 6.09
- RSES 2.2——粗糙集处理软件
- Furan-BDOPV Donor-Acceptor Polymers with Plana
-
解决安装vs2012后vs2010 li
nk : fatal er - Behaviors of fatigue crack propagation in fric
- New fixed point theorems of e-concave-convex m
- 矿用多功能网关通信接口设计
- 矿井信号收发器通信模块设计
- 易语言RSA加解密源码
- Effects of the cultured Cordyceps exopolysacch
- Synthesis Characterization and in vitro Antitu
- Anti-biofilm Activity of Resveratrol and Ursol
- In vitro screening of lactobacilli with antago
- Effect of dietary nitrate dosage on gas produc
- Research on pharmacological effects of lycorin
- 在未来的电子对撞机上使用胶子Sive
- Fanuc机器人PNS程序和RSR程序启动改.d
- USB转串口(RS232/RS485/RS422)驱动程序文
评论
共有 条评论