[Gmp-commit] /var/hg/gmp: Add hack to support fat builds.
mercurial at gmplib.org
mercurial at gmplib.org
Tue Mar 13 15:57:13 CET 2012
details: /var/hg/gmp/rev/090afe7a7fcd
changeset: 14755:090afe7a7fcd
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue Mar 13 15:57:10 2012 +0100
description:
Add hack to support fat builds.
diffstat:
ChangeLog | 4 ++++
mpn/x86_64/core2/gcd_1.asm | 9 +++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r cd5544851283 -r 090afe7a7fcd ChangeLog
--- a/ChangeLog Tue Mar 13 00:00:50 2012 +0100
+++ b/ChangeLog Tue Mar 13 15:57:10 2012 +0100
@@ -1,3 +1,7 @@
+2012-03-13 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/x86_64/core2/gcd_1.asm: Add hack to support fat builds.
+
2012-03-12 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86_64/core2/gcd_1.asm: New file.
diff -r cd5544851283 -r 090afe7a7fcd mpn/x86_64/core2/gcd_1.asm
--- a/mpn/x86_64/core2/gcd_1.asm Tue Mar 13 00:00:50 2012 +0100
+++ b/mpn/x86_64/core2/gcd_1.asm Tue Mar 13 15:57:10 2012 +0100
@@ -47,6 +47,15 @@
ABI_SUPPORT(DOS64)
ABI_SUPPORT(STD64)
+C Undo some configure cleverness.
+C The problem is that C only defines the '1c' variant, and that configure
+C therefore considers modexact_1c to be the base function. It then adds a
+C special fat rule for mpn_modexact_1_odd, messing up things when a cpudep
+C gcd_1 exists without a corresponding cpudep mode1o.
+ifdef(`WANT_FAT_BINARY', `
+ define(`mpn_modexact_1_odd', `MPN_PREFIX`modexact_1_odd_x86_64'')')
+
+
ASM_START()
TEXT
ALIGN(16)
More information about the gmp-commit
mailing list