Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1723996
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jan Kardell <jan.kardell@telliq.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH trivial] lib: crc-itu-t poly documentation |
| Date | Thu, 31 Aug 2017 10:40:01 +0200 |
| Message-ID | <uktb3-3io-3@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=telliq.com; s=google; h=from:to:subject:date:message-id; bh=ThAhCL3mDVGLuTLvkbZSM60cQAc/OoozURwpJAiREzs=; b=E0cFlGo6I0JHPxjkWcvLHH5HCBsQI+0qf1KmIDo/NohC6peA4OX3lRspAEBC+4PIZz lUVZsuFRfe7NAYISvkACZ15bzk6lrPg43GWXC+4fJkWQq1Z9rZ+6z+I3l1/4Z4WPSgyR rPZ0qoopc/qZyLyNbmc3sTIZBNagSIbo/3SoIZEIpBluhgeEd7z+n7RkXpFzY3B2TNxr nFBtFkQZ8QxitXCNPMcz6TWB0yPgaC1h0iGjVkoFHAnW0F2hriNz+XxxCFV0rmCht7IH 4iWHjYhbo1RDIRnOaAwWKNuJlP6mF890SadgGBKprOUD4AWh5wm5zDM5i7xz/u2ANoUg t2nQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=ThAhCL3mDVGLuTLvkbZSM60cQAc/OoozURwpJAiREzs=; b=Iq8lAEHqk9cvrdpTEkWOp51DMLsG+ndU6TecjChWz2r1AbUH8Gkn28zB5HJPnFWPFE esczLeSZHL8aVwYXv37KZ0pE4ON04QPmIhayRQutH2f+X/RaJkZ3ddJDwx6D/HJVKzOm v81qib/BjOd9ggrGI0gAddGHalwCxFUfkPunFi13Ga7tBlWb6Q5m6LxTPAugKtEfsMBy 1IfG6Kc1lYHbPy8u108wpPnhF5QY6Zv/DmgcYVoRgFAXBd+8nohlj8ao+dthKXnB79vf aDd/UTesaaZJy9jJh6WyG3gjA1eYm5mBQ10Kn1UIV5hE6NVv4DrGG+Gqd4mxtFFJIHwV ahhA== |
| X-Gm-Message-State | AHPjjUhuFxE+ewpVzhTAMlauJTOi0fY9Qt6pYVwfkosLoIqbB7qa5/HH YsJDAftfSZACAQbxnL0= |
| X-Received | by 10.25.228.84 with SMTP id b81mr1558040lfh.26.1504168631117; Thu, 31 Aug 2017 01:37:11 -0700 (PDT) |
| X-Mailer | git-send-email 2.13.5 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Date | Thu, 31 Aug 2017 10:36:52 +0200 |
| X-Original-Message-ID | <20170831083652.20904-1-jan.kardell@telliq.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1723996 |
Show key headers only | View raw
The polynomial was documented to have a x^15 term, it
is actually x^5.
Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
---
include/linux/crc-itu-t.h | 2 +-
lib/crc-itu-t.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/crc-itu-t.h b/include/linux/crc-itu-t.h
index a9953c762eee..7f89fab798ab 100644
--- a/include/linux/crc-itu-t.h
+++ b/include/linux/crc-itu-t.h
@@ -3,7 +3,7 @@
*
* Implements the standard CRC ITU-T V.41:
* Width 16
- * Poly 0x1021 (x^16 + x^12 + x^15 + 1)
+ * Poly 0x1021 (x^16 + x^12 + x^5 + 1)
* Init 0
*
* This source code is licensed under the GNU General Public License,
diff --git a/lib/crc-itu-t.c b/lib/crc-itu-t.c
index b3219d0abfb4..7ff2cf96c9f0 100644
--- a/lib/crc-itu-t.c
+++ b/lib/crc-itu-t.c
@@ -9,7 +9,7 @@
#include <linux/module.h>
#include <linux/crc-itu-t.h>
-/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^15 + 1) */
+/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
const u16 crc_itu_t_table[256] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
--
2.13.5
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH trivial] lib: crc-itu-t poly documentation Jan Kardell <jan.kardell@telliq.com> - 2017-08-31 10:40 +0200
csiph-web