Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371119
b: refs/heads/master
c: 57ae1b0
h: refs/heads/master
i:
  371117: 1aa3cb9
  371115: b9ef74b
  371111: cc0c35c
  371103: 997c46f
v: v3
  • Loading branch information
Sandy Wu authored and Herbert Xu committed Apr 25, 2013
1 parent 6aa0831 commit 3a7da86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c4196a2fd7c31acd6d02d9921f7896b8f160c92
refs/heads/master: 57ae1b0532977b30184aaba04b6cafe0a284c21f
5 changes: 3 additions & 2 deletions trunk/arch/x86/crypto/crc32c-pcl-intel-asm_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* SOFTWARE.
*/

#include <asm/inst.h>
#include <linux/linkage.h>

## ISCSI CRC 32 Implementation with crc32 and pclmulqdq Instruction
Expand Down Expand Up @@ -226,10 +227,10 @@ LABEL crc_ %i
movdqa (bufp), %xmm0 # 2 consts: K1:K2

movq crc_init, %xmm1 # CRC for block 1
pclmulqdq $0x00,%xmm0,%xmm1 # Multiply by K2
PCLMULQDQ 0x00,%xmm0,%xmm1 # Multiply by K2

movq crc1, %xmm2 # CRC for block 2
pclmulqdq $0x10, %xmm0, %xmm2 # Multiply by K1
PCLMULQDQ 0x10, %xmm0, %xmm2 # Multiply by K1

pxor %xmm2,%xmm1
movq %xmm1, %rax
Expand Down

0 comments on commit 3a7da86

Please sign in to comment.