maintain alignment of mpn/x86_64w assembler code with that in the Linux/GCC repository
This commit is contained in:
parent
d921e6e4e6
commit
4f6d27d18a
12
compat.c
12
compat.c
@ -24,18 +24,6 @@ MA 02110-1301, USA. */
|
||||
#include "gmp-impl.h"
|
||||
|
||||
|
||||
/* mpn_divexact_by3 was a function in gmp 3.0.1, but as of gmp 3.1 it's a
|
||||
macro calling mpn_divexact_by3c. */
|
||||
#if defined( _MSC_VER) && !defined( HAVE_NATIVE_mpn_divexact_by3 )
|
||||
|
||||
mp_limb_t
|
||||
__MPN (divexact_by3) (mp_ptr dst, mp_srcptr src, mp_size_t size)
|
||||
{
|
||||
return mpn_divexact_by3 (dst, src, size);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* mpn_divmod_1 was a function in gmp 3.0.1 and earlier, but marked obsolete
|
||||
in both gmp 2 and 3. As of gmp 3.1 it's a macro calling mpn_divrem_1. */
|
||||
mp_limb_t
|
||||
|
@ -1940,9 +1940,12 @@ Use "--disable-static --enable-shared" to build just a DLL.])
|
||||
#
|
||||
# LDFLAGS="$LDFLAGS -Wl,--enable-auto-import" this is too general
|
||||
if test "$enable_shared" = yes; then
|
||||
GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
|
||||
LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libmpir-3.dll.def"
|
||||
LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libmpirxx-3.dll.def"
|
||||
GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined"
|
||||
if test "$with_gnu_ld" = yes; then
|
||||
GMP_LDFLAGS="$GMP_LDFLAGS -Wl,--export-all-symbols"
|
||||
LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libmpir-3.dll.def"
|
||||
LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libmpirxx-3.dll.def"
|
||||
fi
|
||||
LIBGMP_DLL=1
|
||||
fi
|
||||
;;
|
||||
|
@ -39,7 +39,7 @@
|
||||
mov rax, rdx
|
||||
ret
|
||||
|
||||
.1: FRAME_PROC ?mpn_sandybridge_mul, 0, reg_save_list
|
||||
.1: FRAME_PROC ?mpn_haswell_avx_mul, 0, reg_save_list
|
||||
mov r11, 5
|
||||
lea rsi, [rdx+r8*8-40]
|
||||
lea rdi, [rcx+r8*8-40]
|
||||
|
@ -37,7 +37,7 @@
|
||||
ret
|
||||
|
||||
xalign 32
|
||||
.1: FRAME_PROC mpn_sqr_basec1, 0, reg_save_list
|
||||
.1: FRAME_PROC mpn_haswell_avx_sqr_basec1, 0, reg_save_list
|
||||
mov rdi, rcx
|
||||
mov rsi, rdx
|
||||
mov rdx, r8
|
||||
|
@ -39,7 +39,7 @@
|
||||
mov rax, rdx
|
||||
ret
|
||||
|
||||
.1: FRAME_PROC ?mpn_sandybridge_mul, 0, reg_save_list
|
||||
.1: FRAME_PROC ?mpn_haswell_mul, 0, reg_save_list
|
||||
mov r11, 5
|
||||
lea rsi, [rdx+r8*8-40]
|
||||
lea rdi, [rcx+r8*8-40]
|
||||
|
@ -372,7 +372,7 @@
|
||||
LEAF_PROC mpn_redc_1
|
||||
cmp r9, 1
|
||||
je one
|
||||
FRAME_PROC ?mpn_sandybridge_redc_1, 0, reg_save_list
|
||||
FRAME_PROC ?mpn_haswell_redc_1, 0, reg_save_list
|
||||
mov rdi, rcx
|
||||
mov rsi, r8
|
||||
mov r8, rdx
|
||||
|
@ -39,7 +39,7 @@
|
||||
mov rax, rdx
|
||||
ret
|
||||
|
||||
.1: FRAME_PROC ?mpn_sandybridge_mul, 0, reg_save_list
|
||||
.1: FRAME_PROC ?mpn_skylake_mul, 0, reg_save_list
|
||||
mov r11, 5
|
||||
lea rsi, [rdx+r8*8-40]
|
||||
lea rdi, [rcx+r8*8-40]
|
||||
|
@ -372,7 +372,7 @@
|
||||
LEAF_PROC mpn_redc_1
|
||||
cmp r9, 1
|
||||
je one
|
||||
FRAME_PROC ?mpn_sandybridge_redc_1, 0, reg_save_list
|
||||
FRAME_PROC ?mpn_skylake_redc_1, 0, reg_save_list
|
||||
mov rdi, rcx
|
||||
mov rsi, r8
|
||||
mov r8, rdx
|
||||
|
@ -37,7 +37,7 @@
|
||||
ret
|
||||
|
||||
xalign 32
|
||||
.1: FRAME_PROC mpn_sqr_basec1, 0, reg_save_list
|
||||
.1: FRAME_PROC mpn_skylake_sqr_basec1, 0, reg_save_list
|
||||
mov rdi, rcx
|
||||
mov rsi, rdx
|
||||
mov rdx, r8
|
||||
|
Loading…
Reference in New Issue
Block a user