|
@@ -170,8 +170,8 @@ continue_block:
|
|
|
## branch into array
|
|
|
lea jump_table(%rip), bufp
|
|
|
movzxw (bufp, %rax, 2), len
|
|
|
- offset=crc_array-jump_table
|
|
|
- lea offset(bufp, len, 1), bufp
|
|
|
+ lea crc_array(%rip), bufp
|
|
|
+ lea (bufp, len, 1), bufp
|
|
|
jmp *bufp
|
|
|
|
|
|
################################################################
|
|
@@ -310,7 +310,9 @@ do_return:
|
|
|
popq %rdi
|
|
|
popq %rbx
|
|
|
ret
|
|
|
+ENDPROC(crc_pcl)
|
|
|
|
|
|
+.section .rodata, "a", %progbits
|
|
|
################################################################
|
|
|
## jump table Table is 129 entries x 2 bytes each
|
|
|
################################################################
|
|
@@ -324,13 +326,11 @@ JMPTBL_ENTRY %i
|
|
|
i=i+1
|
|
|
.endr
|
|
|
|
|
|
-ENDPROC(crc_pcl)
|
|
|
|
|
|
################################################################
|
|
|
## PCLMULQDQ tables
|
|
|
## Table is 128 entries x 2 words (8 bytes) each
|
|
|
################################################################
|
|
|
-.section .rodata, "a", %progbits
|
|
|
.align 8
|
|
|
K_table:
|
|
|
.long 0x493c7d27, 0x00000001
|