diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-03-13 15:57:10 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-03-13 15:57:10 +0100 |
commit | 1761a0cf9244597affef02697f5fcfe96634191d (patch) | |
tree | 68ae3fbf382dc96069b9eb2e27842562cb3ea0c0 | |
parent | 77fb300b26ffbf1fafa888e98d2a254dcf714a2e (diff) | |
download | gmp-1761a0cf9244597affef02697f5fcfe96634191d.tar.gz |
Add hack to support fat builds.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | mpn/x86_64/core2/gcd_1.asm | 9 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2012-03-13 Torbjorn Granlund <tege@gmplib.org> + + * mpn/x86_64/core2/gcd_1.asm: Add hack to support fat builds. + 2012-03-12 Torbjorn Granlund <tege@gmplib.org> * mpn/x86_64/core2/gcd_1.asm: New file. diff --git a/mpn/x86_64/core2/gcd_1.asm b/mpn/x86_64/core2/gcd_1.asm index 89332cfae..765e74eaa 100644 --- a/mpn/x86_64/core2/gcd_1.asm +++ b/mpn/x86_64/core2/gcd_1.asm @@ -47,6 +47,15 @@ define(`v0', `%rdx') 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) |