Skip to contentSkip to conversation

Clean-up for crypto Intel CRC32 code.

PATCH In review Austin Zhang 2 participants 2 messages Aug 12, 2008 – Aug 13, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clean-up for crypto Intel CRC32 code.

Herbert and Ulrich, sorry for late reply.
see below.
This patch was created against cryptodev-2.6

Clean-up by new MACRO;

---
 crc32c-intel.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/crypto/crc32c-intel.c +2 -2
diff -Naurp cryptodev-2.6/arch/x86/crypto/crc32c-intel.c cryptodev-2.6-patch/arch/x86/crypto/crc32c-intel.c
@@ -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)
maintainer
#1 lore raw
Quoted 8 lines · Austin Zhang

Herbert and Ulrich, sorry for late reply.
see below.
This patch was created against cryptodev-2.6

Clean-up by new MACRO;

Patch applied. Thanks Austin.

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt