From: Austin Zhang <austin_zhang@linux.intel.com>
To: herbert@gondor.apana.org.au, drepper@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH]Clean-up for crypto Intel CRC32 code.
Date: Tue, 12 Aug 2008 06:23:13 -0400 [thread overview]
Message-ID: <1218536593.16293.9.camel@localhost.localdomain> (raw)
Herbert and Ulrich, sorry for late reply.
see below.
This patch was created against cryptodev-2.6
Clean-up by new MACRO;
Signed-off-by: Austin Zhang <austin.zhang@intel.com>
---
crc32c-intel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -Naurp cryptodev-2.6/arch/x86/crypto/crc32c-intel.c cryptodev-2.6-patch/arch/x86/crypto/crc32c-intel.c
--- cryptodev-2.6/arch/x86/crypto/crc32c-intel.c 2008-08-12 04:44:00.000000000 -0400
+++ cryptodev-2.6-patch/arch/x86/crypto/crc32c-intel.c 2008-08-12 05:58:56.000000000 -0400
@@ -26,12 +26,12 @@
#define CHKSUM_BLOCK_SIZE 1
#define CHKSUM_DIGEST_SIZE 4
+#define SCALE_F sizeof(unsigned long)
+
#ifdef CONFIG_X86_64
#define REX_PRE "0x48, "
-#define SCALE_F 8
#else
#define REX_PRE
-#define SCALE_F 4
#endif
static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length)
next reply other threads:[~2008-08-12 10:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-12 10:23 Austin Zhang [this message]
2008-08-13 11:59 ` 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=1218536593.16293.9.camel@localhost.localdomain \
--to=austin_zhang@linux.intel.com \
--cc=drepper@gmail.com \
--cc=herbert@gondor.apana.org.au \
--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®