mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Pavel Machek <pavel@suse.cz>
Cc: Austin Zhang <austin_zhang@linux.intel.com>,
	bunk@kernel.org, dwmw2@infradead.org, davem@davemloft.net,
	randy.dunlap@oracle.com, linux-kernel@vger.kernel.org,
	linux-crypto@vger.kernel.org
Subject: Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC32c algorithm by new crypto API -V3.
Date: Wed, 6 Aug 2008 19:03:48 +0800	[thread overview]
Message-ID: <20080806110348.GA32022@gondor.apana.org.au> (raw)
In-Reply-To: <20080806094226.GA23685@atrey.karlin.mff.cuni.cz>

On Wed, Aug 06, 2008 at 11:42:26AM +0200, Pavel Machek wrote:
>
> > +static int crc32c_intel_final(struct ahash_request *req)
> > +{
> > +	u32 *crcp = ahash_request_ctx(req);
> > +
> > +	*(__le32 *)req->result = ~cpu_to_le32p(crcp);
> > +	return 0;
> 
> This is not user visible, so le32 should be enough.

Unfortunately I don't think le32 exists, it'd definitely be nice
to have it though.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  reply	other threads:[~2008-08-06 11:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06  5:23 Austin Zhang
2008-08-06  9:42 ` Pavel Machek
2008-08-06 11:03   ` Herbert Xu [this message]
2008-08-06 11:05   ` Austin Zhang
2008-08-06 11:17     ` Herbert Xu
2008-08-06 11:20       ` Austin Zhang
2008-08-06 11:22       ` Herbert Xu
2008-08-06 12:14     ` Pavel Machek
2008-08-07  2:00       ` Herbert Xu
2008-08-06 10:09 ` Herbert Xu
2008-08-08  3:38 ` Ulrich Drepper
2008-08-08 13:35   ` Herbert Xu
2008-08-11 16:10     ` Pavel Machek
2008-08-13  1:14       ` Herbert Xu

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=20080806110348.GA32022@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=austin_zhang@linux.intel.com \
    --cc=bunk@kernel.org \
    --cc=davem@davemloft.net \
    --cc=dwmw2@infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=randy.dunlap@oracle.com \
    /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®