summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-12-13 14:34:57 +0100
committerTorbjorn Granlund <tege@gmplib.org>2012-12-13 14:34:57 +0100
commitda8f29f53630adacb79ee917cbf1db0d5280dec1 (patch)
tree8e2c601d4f07fe6592b1f13593f3f20561cfcfb7 /mpn
parent3a6c33c66683940de0d794a447a11f9baddc53c9 (diff)
downloadgmp-da8f29f53630adacb79ee917cbf1db0d5280dec1.tar.gz
(JMPENT): Push PIC test inside macro, for clarity.
Diffstat (limited to 'mpn')
-rw-r--r--mpn/x86_64/x86_64-defs.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/mpn/x86_64/x86_64-defs.m4 b/mpn/x86_64/x86_64-defs.m4
index 870abb6b7..748bc61be 100644
--- a/mpn/x86_64/x86_64-defs.m4
+++ b/mpn/x86_64/x86_64-defs.m4
@@ -187,9 +187,15 @@ ifdef(`PIC',
define(`JUMPTABSECT', `.section .data.rel.ro.local,"aw",@progbits')
+
+dnl Usage: JMPENT(targlabel,tablabel)
+
+define(`JMPENT',`dnl
ifdef(`PIC',
- `define(`JMPENT', `.long $1-$2')',
- `define(`JMPENT', `.quad $1')')
+ `.long $1-$2'
+,
+ `.quad $1'
+)')
dnl These macros are defined just for DOS64, where they provide calling