1 dnl AMD64 mpn_sublshC_n
-- rp
[] = up
[] - (vp
[] << 1), optimised for Core
2 and
4 dnl Contributed to the GNU project by Torbjorn Granlund.
6 dnl Copyright
2008, 2010-2012 Free Software Foundation
, Inc.
8 dnl
This file is part of the GNU MP Library.
10 dnl The GNU MP Library is free software
; you can redistribute it and/or modify
11 dnl it under the terms of
either:
13 dnl
* the GNU Lesser General
Public License as published by the Free
14 dnl Software Foundation
; either version 3 of the License, or (at your
15 dnl option
) any later version.
19 dnl
* the GNU General
Public License as published by the Free Software
20 dnl Foundation
; either version 2 of the License, or (at your option) any
23 dnl
or both
in parallel
, as here.
25 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
26 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
27 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
30 dnl You should have received copies of the GNU General
Public License
and the
31 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
32 dnl see
https://www.gnu.
org/licenses
/.
58 mov R32
(%rcx
), R32
(%rax
)
64 xor R32
(%r11
), R32
(%r11
)
66 mov -24(vp
,n
,8), %r8 C do first limb early
75 L
(b3
): mov -16(vp
,n
,8), %r9
89 sbb R32
(%rax
), R32
(%rax
) C save cy
94 L
(b1
): mov -24(up
,n
,8), %r12
98 sbb R32
(%rax
), R32
(%rax
) C save cy
103 L
(b2
): mov -16(vp
,n
,8), %r9
105 mov -24(up
,n
,8), %r12
107 mov %r12
, -24(rp
,n
,8)
108 mov -16(up
,n
,8), %r12
110 mov %r12
, -16(rp
,n
,8)
112 sbb R32
(%rax
), R32
(%rax
) C save cy
118 L
(top
): mov -24(vp
,n
,8), %r8
120 L
(b0
): mov -16(vp
,n
,8), %r9
125 shrd $RSH
, %rbx
, %r10
127 add R32
(%rax
), R32
(%rax
) C restore cy
129 mov -24(up
,n
,8), %r12
131 mov %r12
, -24(rp
,n
,8)
133 mov -16(up
,n
,8), %r12
135 mov %r12
, -16(rp
,n
,8)
146 sbb R32
(%rax
), R32
(%rax
) C save cy
151 L
(end): shr $RSH
, %r11
154 sub R32
(%r11
), R32
(%rax
)