summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2004-11-16 13:48:09 +0000
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2004-11-16 13:48:09 +0000
commit9307638e51cc486e4e8c17a598b53220b3aba1a7 (patch)
treece504712e3151076c4708f59a13d0d04fdeb887a
parente788343358c3a7613a3e846fc7a5d62d747ceaf4 (diff)
RS library spelling fixes.
Originally from Joe Perches <joe@perches.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r--Documentation/DocBook/librs.tmpl22
-rw-r--r--lib/reed_solomon/decode_rs.c8
-rw-r--r--lib/reed_solomon/encode_rs.c4
3 files changed, 17 insertions, 17 deletions
diff --git a/Documentation/DocBook/librs.tmpl b/Documentation/DocBook/librs.tmpl
index ea94ae848b21..be482c030203 100644
--- a/Documentation/DocBook/librs.tmpl
+++ b/Documentation/DocBook/librs.tmpl
@@ -83,13 +83,13 @@
<title>Initializing</title>
<para>
The init function init_rs returns a pointer to a
- rs decoder structure, which holds the neccecary
+ rs decoder structure, which holds the necessary
information for encoding, decoding and error correction
with the given polynomial. It either uses an existing
matching decoder or creates a new one. On creation all
the lookup tables for fast en/decoding are created.
The function may take a while, so make sure not to
- call it in critical code pathes.
+ call it in critical code paths.
</para>
<programlisting>
/* the Reed Solomon control structure */
@@ -123,10 +123,10 @@ rs_decoder = init_rs (10, 0x409, 0, 1, 6);
results in ECC errors.
</para>
<para>
- The databytes are expanded to the given symbolsize
- on the fly. There is no support for encoding continuos
- bitstreams with a symbolsize != 8 at the moment. If
- it is neccecary it should be not a big deal to implement
+ The databytes are expanded to the given symbol size
+ on the fly. There is no support for encoding continuous
+ bitstreams with a symbol size != 8 at the moment. If
+ it is necessary it should be not a big deal to implement
such functionality.
</para>
<programlisting>
@@ -155,13 +155,13 @@ encode_rs8 (rs_decoder, data8, 512, par, 0);
location buffer to the decoder. The decoder stores the
calculated error location and the correction bitmask
in the given buffers. This is useful for hardware
- decoders which use a weird bitordering scheme.
+ decoders which use a weird bit ordering scheme.
</para>
<para>
- The databytes are expanded to the given symbolsize
- on the fly. There is no support for decoding continuos
+ The databytes are expanded to the given symbol size
+ on the fly. There is no support for decoding continuous
bitstreams with a symbolsize != 8 at the moment. If
- it is neccecary it should be not a big deal to implement
+ it is necessary it should be not a big deal to implement
such functionality.
</para>
@@ -208,7 +208,7 @@ numerr = decode_rs8 (rs_decoder, data8, par, 512, syn, 0, NULL, 0, NULL);
Decoding with syndrome given by hardware decoder, no direct data correction.
</title>
<para>
- Note: It's not neccecary to give data and recieved parity to the decoder.
+ Note: It's not necessary to give data and received parity to the decoder.
</para>
<programlisting>
/* Parity buffer. Size = number of roots */
diff --git a/lib/reed_solomon/decode_rs.c b/lib/reed_solomon/decode_rs.c
index 4bce4fdd4d8c..d401decd6289 100644
--- a/lib/reed_solomon/decode_rs.c
+++ b/lib/reed_solomon/decode_rs.c
@@ -9,11 +9,11 @@
*
* Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de)
*
- * $Id: decode_rs.c,v 1.5 2004/10/05 22:07:53 gleixner Exp $
+ * $Id: decode_rs.c,v 1.6 2004/10/22 15:41:47 gleixner Exp $
*
*/
-/* Generic data witdh independend code which is included by the
+/* Generic data width independent code which is included by the
* wrappers.
*/
{
@@ -28,7 +28,7 @@
uint16_t *index_of = rs->index_of;
uint16_t u, q, tmp, num1, num2, den, discr_r, syn_error;
/* Err+Eras Locator poly and syndrome poly The maximum value
- * of nroots is 8. So the neccecary stacksize will be about
+ * of nroots is 8. So the necessary stack size will be about
* 220 bytes max.
*/
uint16_t lambda[nroots + 1], syn[nroots];
@@ -42,7 +42,7 @@
if (pad < 0 || pad >= nn)
return -ERANGE;
- /* Deos the caller provide the syndrome ? */
+ /* Does the caller provide the syndrome ? */
if (s != NULL)
goto decode;
diff --git a/lib/reed_solomon/encode_rs.c b/lib/reed_solomon/encode_rs.c
index 762c3724e5ad..237bf65ae886 100644
--- a/lib/reed_solomon/encode_rs.c
+++ b/lib/reed_solomon/encode_rs.c
@@ -9,11 +9,11 @@
*
* Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de)
*
- * $Id: encode_rs.c,v 1.3 2004/10/05 22:07:53 gleixner Exp $
+ * $Id: encode_rs.c,v 1.4 2004/10/22 15:41:47 gleixner Exp $
*
*/
-/* Generic data witdh independend code which is included by the
+/* Generic data width independent code which is included by the
* wrappers.
* int encode_rsX (struct rs_control *rs, uintX_t *data, int len, uintY_t *par)
*/