mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Ivo van Doorn <ivdoorn@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] CRC ITU-T V.41
Date: Thu, 22 Jun 2006 09:07:46 -0700	[thread overview]
Message-ID: <20060622090746.5233bff5.rdunlap@xenotime.net> (raw)
In-Reply-To: <200606221629.05406.IvDoorn@gmail.com>

On Thu, 22 Jun 2006 16:29:02 +0200 Ivo van Doorn wrote:

> diff --git a/lib/crc-itu-t.c b/lib/crc-itu-t.c
> new file mode 100644
> index 0000000..15128ae
> --- /dev/null
> +++ b/lib/crc-itu-t.c
> @@ -0,0 +1,69 @@
> +/*
> + *      crc-itu-t.c
> + *
> + * This source code is licensed under the GNU General Public License,
> + * Version 2. See the file COPYING for more details.
> + */
> +
> +#include <linux/types.h>
> +#include <linux/module.h>
> +#include <linux/crc-itu-t.h>
> +
> +/**
> + * crc_itu_t - Compute the CRC-ITU-T for the data buffer
> + *

no blank ('*') line here (above), please.
kernel-doc doesn't expect that.

> + * @crc: previous CRC value
> + * @buffer: data pointer
> + * @len: number of bytes in the buffer
> + *
> + * Returns the updated CRC value
> + */
> +u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)
> +{
> +	while (len--)
> +		crc = crc_itu_t_byte(crc, *buffer++);
> +	return crc;
> +}

---
~Randy

  reply	other threads:[~2006-06-22 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 14:29 Ivo van Doorn
2006-06-22 16:07 ` Randy.Dunlap [this message]
2006-06-22 16:25   ` Ivo van Doorn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060622090746.5233bff5.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=ivdoorn@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®