2020-05-26 15:15:55 +00:00
|
|
|
--- ceph-15.2.2/src/common/crc32c_intel_fast_zero_asm.s.orig 2020-05-26 08:34:32.226201974 -0400
|
2020-05-26 21:23:55 +00:00
|
|
|
+++ ceph-15.2.2/src/common/crc32c_intel_fast_zero_asm.s 2020-05-26 17:19:32.497201974 -0400
|
2020-05-26 15:15:55 +00:00
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
;
|
|
|
|
-; Copyright 2012-2013 Intel Corporation All Rights Reserved.
|
|
|
|
+; Copyright 2012-2015 Intel Corporation All Rights Reserved.
|
|
|
|
; All rights reserved.
|
|
|
|
;
|
|
|
|
; http://opensource.org/licenses/BSD-3-Clause
|
|
|
|
@@ -59,6 +59,19 @@
|
|
|
|
xor rbx, rbx ;; rbx = crc1 = 0;
|
|
|
|
xor r10, r10 ;; r10 = crc2 = 0;
|
|
|
|
|
|
|
|
+ cmp len, %%bSize*3*2
|
|
|
|
+ jbe %%non_prefetch
|
|
|
|
+
|
|
|
|
+ %assign i 0
|
|
|
|
+ %rep %%bSize/8 - 1
|
|
|
|
+ crc32 rax, bufptmp ;; update crc0
|
|
|
|
+ crc32 rbx, bufptmp ;; update crc1
|
|
|
|
+ crc32 r10, bufptmp ;; update crc2
|
|
|
|
+ %assign i (i+8)
|
|
|
|
+ %endrep
|
2020-05-26 23:15:25 +00:00
|
|
|
+ jmp %%next %+ %1
|
2020-05-26 15:15:55 +00:00
|
|
|
+
|
|
|
|
+%%non_prefetch:
|
|
|
|
%assign i 0
|
|
|
|
%rep %%bSize/8 - 1
|
|
|
|
crc32 rax, bufptmp ;; update crc0
|
|
|
|
@@ -66,6 +79,8 @@
|
|
|
|
crc32 r10, bufptmp ;; update crc2
|
|
|
|
%assign i (i+8)
|
|
|
|
%endrep
|
|
|
|
+
|
|
|
|
+%%next %+ %1:
|
|
|
|
crc32 rax, bufptmp ;; update crc0
|
|
|
|
crc32 rbx, bufptmp ;; update crc1
|
|
|
|
; SKIP ;crc32 r10, bufptmp ;; update crc2
|
|
|
|
@@ -180,12 +195,15 @@
|
|
|
|
%define crc_init_dw r8d
|
|
|
|
%endif
|
|
|
|
|
|
|
|
-
|
|
|
|
+ endbranch
|
|
|
|
push rdi
|
|
|
|
push rbx
|
|
|
|
|
|
|
|
mov rax, crc_init ;; rax = crc_init;
|
|
|
|
|
|
|
|
+ cmp len, 8
|
|
|
|
+ jb less_than_8
|
|
|
|
+
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; 1) ALIGN: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|