karasub documentation correction
This commit is contained in:
parent
ceb36b722d
commit
7b6cec91a5
@ -267,13 +267,8 @@
|
||||
mov rcx, 3
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from lower half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -296,6 +291,11 @@
|
||||
inc rdx
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: xor r8, r8
|
||||
bt rbx, 1
|
||||
adc r8, r8
|
||||
|
@ -267,13 +267,8 @@
|
||||
mov rcx, 3
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -296,6 +291,11 @@
|
||||
inc rdx
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: mov rax, 6
|
||||
and rax, rbx
|
||||
popcnt r8, rax
|
||||
|
@ -267,13 +267,8 @@
|
||||
mov rcx, 3
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from lower half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -296,6 +291,11 @@
|
||||
inc rdx
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: xor r8, r8
|
||||
bt rbx, 1
|
||||
adc r8, r8
|
||||
|
@ -268,13 +268,8 @@
|
||||
mov rcx, 3
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from lower half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -297,6 +292,11 @@
|
||||
inc rdx
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: xor r8, r8
|
||||
bt rbx, 1
|
||||
adc r8, r8
|
||||
|
@ -268,12 +268,7 @@
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from lower half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -296,6 +291,11 @@
|
||||
lea rdx, [rdx + 1]
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: mov rax, 6
|
||||
and rax, rbx
|
||||
popcnt r8, rax
|
||||
|
@ -268,13 +268,8 @@
|
||||
mov rcx, 3
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from lower half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -297,6 +292,11 @@
|
||||
inc rdx
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: xor r8, r8
|
||||
bt rbx, 1
|
||||
adc r8, r8
|
||||
|
@ -267,13 +267,8 @@
|
||||
mov rcx, 3
|
||||
|
||||
; add in any carries and/or borrows
|
||||
;
|
||||
; carries from low half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; carries from lower half to upper half:
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rax{1} is the carry in (B + C) + D
|
||||
; rax{0} is the borrow in (B + C + D) - F
|
||||
@ -296,6 +291,11 @@
|
||||
inc rdx
|
||||
jc .12
|
||||
|
||||
; carries from the third to the fourth quarter
|
||||
; rbx{2} is the carry in (B + C)
|
||||
; rbx{1} is the carry in (B + C) + A
|
||||
; rbx{0} is the borrow in (B + C + A) - E
|
||||
|
||||
.13: mov rax, 6
|
||||
and rax, rbx
|
||||
popcnt r8, rax
|
||||
|
Loading…
Reference in New Issue
Block a user