[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Fri Dec 2 18:17:45 CET 2011
details: /var/hg/gmp/rev/5be72d6fc677
changeset: 14511:5be72d6fc677
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Dec 02 17:54:33 2011 +0100
description:
(PROTECT, IFELF): New defines.
details: /var/hg/gmp/rev/74ceaadbc8d1
changeset: 14512:74ceaadbc8d1
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Dec 02 18:17:07 2011 +0100
description:
Use PROTECT.
details: /var/hg/gmp/rev/8fdad5ed2fdb
changeset: 14513:8fdad5ed2fdb
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Dec 02 18:17:37 2011 +0100
description:
*** empty log message ***
diffstat:
ChangeLog | 9 +++++++++
mpn/x86_64/darwin.m4 | 16 ++++++++++++++++
mpn/x86_64/dos64.m4 | 14 ++++++++++++++
mpn/x86_64/invert_limb.asm | 2 +-
mpn/x86_64/invert_limb_table.asm | 2 ++
mpn/x86_64/x86_64-defs.m4 | 18 ++++++++++++++++++
6 files changed, 60 insertions(+), 1 deletions(-)
diffs (121 lines):
diff -r c90d8d7ddd21 -r 8fdad5ed2fdb ChangeLog
--- a/ChangeLog Thu Dec 01 23:09:33 2011 +0100
+++ b/ChangeLog Fri Dec 02 18:17:37 2011 +0100
@@ -1,3 +1,12 @@
+2011-12-02 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/x86_64/invert_limb_table.asm: Use PROTECT.
+ * mpn/x86_64/invert_limb.asm: Likewise.
+
+ * mpn/x86_64/darwin.m4 (PROTECT, IFELF): New defines.
+ * mpn/x86_64/dos64.m4 (PROTECT, IFELF): New defines.
+ * mpn/x86_64/x86_64-defs.m4 (PROTECT, IFELF): New defines.
+
2011-12-01 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86_64/fat/fat.c: Copy fake cpuid code from x86/fat/fat.c.
diff -r c90d8d7ddd21 -r 8fdad5ed2fdb mpn/x86_64/darwin.m4
--- a/mpn/x86_64/darwin.m4 Thu Dec 01 23:09:33 2011 +0100
+++ b/mpn/x86_64/darwin.m4 Fri Dec 02 18:17:37 2011 +0100
@@ -31,4 +31,20 @@
define(`JUMPTABSECT', `DATA')
+
+dnl Target ABI macros. For Darwin we override IFELF (and leave default for
+dnl IFDOS and IFSTD).
+
+define(`IFELF', `')
+
+
+dnl Usage: PROTECT(symbol)
+dnl
+dnl Used for private GMP symbols that should never be overridden by users.
+dnl This can save reloc entries and improve shlib sharing as well as
+dnl application startup times
+
+define(`PROTECT', `')
+
+
divert`'dnl
diff -r c90d8d7ddd21 -r 8fdad5ed2fdb mpn/x86_64/dos64.m4
--- a/mpn/x86_64/dos64.m4 Thu Dec 01 23:09:33 2011 +0100
+++ b/mpn/x86_64/dos64.m4 Fri Dec 02 18:17:37 2011 +0100
@@ -53,7 +53,21 @@
define(`PIC')
+
+dnl Target ABI macros. For DOS64 we override the defaults.
+
define(`IFDOS', `$1')
define(`IFSTD', `')
+define(`IFELF', `')
+
+
+dnl Usage: PROTECT(symbol)
+dnl
+dnl Used for private GMP symbols that should never be overridden by users.
+dnl This can save reloc entries and improve shlib sharing as well as
+dnl application startup times
+
+define(`PROTECT', `')
+
divert`'dnl
diff -r c90d8d7ddd21 -r 8fdad5ed2fdb mpn/x86_64/invert_limb.asm
--- a/mpn/x86_64/invert_limb.asm Thu Dec 01 23:09:33 2011 +0100
+++ b/mpn/x86_64/invert_limb.asm Fri Dec 02 18:17:37 2011 +0100
@@ -36,7 +36,7 @@
ABI_SUPPORT(DOS64)
ABI_SUPPORT(STD64)
-IFSTD(` .protected mpn_invert_limb_table ')
+PROTECT(`mpn_invert_limb_table')
ASM_START()
TEXT
diff -r c90d8d7ddd21 -r 8fdad5ed2fdb mpn/x86_64/invert_limb_table.asm
--- a/mpn/x86_64/invert_limb_table.asm Thu Dec 01 23:09:33 2011 +0100
+++ b/mpn/x86_64/invert_limb_table.asm Fri Dec 02 18:17:37 2011 +0100
@@ -24,6 +24,8 @@
ABI_SUPPORT(DOS64)
ABI_SUPPORT(STD64)
+PROTECT(`mpn_invert_limb_table')
+
ASM_START()
C Table entry X contains floor (0x7fd00 / (0x100 + X))
diff -r c90d8d7ddd21 -r 8fdad5ed2fdb mpn/x86_64/x86_64-defs.m4
--- a/mpn/x86_64/x86_64-defs.m4 Thu Dec 01 23:09:33 2011 +0100
+++ b/mpn/x86_64/x86_64-defs.m4 Fri Dec 02 18:17:37 2011 +0100
@@ -169,10 +169,28 @@
define(`JUMPTABSECT', `.section .data.rel.ro.local,"aw", at progbits')
+
+dnl These macros are defined just for DOS64, where they provide calling
+dnl sequence glue code.
+
define(`DOS64_ENTRY',`')
define(`DOS64_EXIT',`')
+
+dnl Target ABI macros.
+
define(`IFDOS', `')
define(`IFSTD', `$1')
+define(`IFELF', `$1')
+
+
+dnl Usage: PROTECT(symbol)
+dnl
+dnl Used for private GMP symbols that should never be overridden by users.
+dnl This can save reloc entries and improve shlib sharing as well as
+dnl application startup times
+
+define(`PROTECT', `.protected $1')
+
divert`'dnl
More information about the gmp-commit
mailing list