Function report |
Source Code:lib\reed_solomon\reed_solomon.c |
Create Date:2022-07-28 06:59:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dec_init - Initialize a Reed-Solomon codec*@symsize: symbol size, bits (1-8)*@gfpoly: Field generator polynomial coefficients*@gffunc: Field generator function*@fcr: first root of RS code generator polynomial, index form*@prim: primitive element to
Proto:static struct rs_codec *codec_init(int symsize, int gfpoly, int (*gffunc)(int ), int fcr, int prim, int nroots, gfp_t gfp)
Type:struct rs_codec
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | symsize | |
| int | gfpoly | |
| int (* | gffunc | |
| int | fcr | |
| int | prim | |
| int | nroots | |
| gfp_t | gfp |
| 76 | rs = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 77 | If Not rs Then Return NULL |
| 91 | alpha_to = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 95 | index_of = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 99 | genpoly = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 106 | If gfpoly Then |
| 107 | sr = 1 |
| 116 | Else |
| 134 | genpoly[0] = 1 |
| 155 | users = 1 |
| 157 | Return rs |
| 159 | err : |
| 164 | Return NULL |
| Name | Describe |
|---|---|
| init_rs_internal | _rs_internal - Allocate rs control, find a matching codec or allocate a new one*@symsize: the symbol size (number of bits)*@gfpoly: the extended Galois field generator polynomial coefficients,* with the 0th coefficient in the low order bit |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |