.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "INIT_RS" "9" "09 October 2005" "" ""
.SH NAME
init_rs \- Find a matching or allocate a new rs control structure
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct rs_control * init_rs (int \fIsymsize\fB, int \fIgfpoly\fB, int \fIfcr\fB, int \fIprim\fB, int \fInroots\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsymsize\fB\fR
the symbol size (number of bits)
.TP
\fB\fIgfpoly\fB\fR
the extended Galois field generator polynomial coefficients,
with the 0th coefficient in the low order bit. The polynomial
must be primitive;
.TP
\fB\fIfcr\fB\fR
the first consecutive root of the rs code generator polynomial
in index form
.TP
\fB\fIprim\fB\fR
primitive element to generate polynomial roots
.TP
\fB\fInroots\fB\fR
RS code generator polynomial degree (number of roots)
.SH "DESCRIPTION"
.PP