more
This commit is contained in:
parent
77d42bcd0f
commit
7f480a7f86
@ -18,9 +18,9 @@
|
|||||||
; to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
; to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
; Boston, MA 02110-1301, USA.
|
; Boston, MA 02110-1301, USA.
|
||||||
;
|
;
|
||||||
; mp_limb_t mpn_redc_1(mp_ptr, mp_ptr, mp_size_t, mp_limb_t, mp_ptr)
|
; void mpn_redc_1(mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)
|
||||||
; rax rdi rsi rdx rcx r8
|
; rax rdi rsi rdx rcx r8
|
||||||
; rax rcx rdx r8 r9 [rsp+40]
|
; rax rcx rdx r8 r9 [rsp+40]
|
||||||
|
|
||||||
%include "yasm_mac.inc"
|
%include "yasm_mac.inc"
|
||||||
|
|
||||||
@ -369,14 +369,15 @@
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
LEAF_PROC mpn_redc_1
|
LEAF_PROC mpn_redc_1
|
||||||
cmp r8, 1
|
cmp r9, 1
|
||||||
je one
|
je one
|
||||||
FRAME_PROC ?mpn_netburst_redc_1, 0, reg_save_list
|
FRAME_PROC ?mpn_nehalem_redc_1, 0, reg_save_list
|
||||||
mov rdi, rcx
|
mov rdi, rcx
|
||||||
mov rsi, rdx
|
mov rsi, r8
|
||||||
mov rdx, r8
|
mov r8, rdx
|
||||||
mov rcx, r9
|
mov rdx, r9
|
||||||
mov r8, [rsp+stack_use+0x28]
|
mov rcx, [rsp+stack_use+0x28]
|
||||||
|
mov [rsp+stack_use+0x28], r8
|
||||||
|
|
||||||
mov r14, 5
|
mov r14, 5
|
||||||
sub r14, rdx
|
sub r14, rdx
|
||||||
@ -422,14 +423,16 @@
|
|||||||
.6: END_PROC reg_save_list
|
.6: END_PROC reg_save_list
|
||||||
|
|
||||||
xalign 16
|
xalign 16
|
||||||
one:mov r8,[rsp+0x28]
|
one:mov r9, rdx
|
||||||
mov r10, [r8]
|
mov r11, [r8]
|
||||||
mov r11, [rdx]
|
mov r8, [rsp+0x28]
|
||||||
imul r9, r10
|
|
||||||
mov rax, r9
|
mov r10, [r9]
|
||||||
|
imul r8, r10
|
||||||
|
mov rax, r8
|
||||||
mul r11
|
mul r11
|
||||||
add rax, r10
|
add rax, r10
|
||||||
adc rdx, [r8+8] ; rax is zero here
|
adc rdx, [r9+8]
|
||||||
cmovnc r11, rax
|
cmovnc r11, rax
|
||||||
sub rdx, r11
|
sub rdx, r11
|
||||||
mov [rcx], rdx
|
mov [rcx], rdx
|
||||||
|
Loading…
Reference in New Issue
Block a user