[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Jun 1 16:33:58 UTC 2017


details:   /var/hg/gmp/rev/3fe46e43dd55
changeset: 17415:3fe46e43dd55
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jun 01 18:19:22 2017 +0200
description:
(DEF_OBJECT): Allow 3rd argument defining section, while making alignment argument non-optional.

details:   /var/hg/gmp/rev/bdfde16d199e
changeset: 17416:bdfde16d199e
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jun 01 18:24:59 2017 +0200
description:
Use 3-operand DEF_OBJECT.

diffstat:

 mpn/x86_64/bd1/hamdist.asm    |  2 +-
 mpn/x86_64/bd1/popcount.asm   |  2 +-
 mpn/x86_64/core2/hamdist.asm  |  2 +-
 mpn/x86_64/core2/popcount.asm |  2 +-
 mpn/x86_64/x86_64-defs.m4     |  9 +++++----
 5 files changed, 9 insertions(+), 8 deletions(-)

diffs (74 lines):

diff -r e592a6525a17 -r bdfde16d199e mpn/x86_64/bd1/hamdist.asm
--- a/mpn/x86_64/bd1/hamdist.asm	Thu Jun 01 15:27:51 2017 +0200
+++ b/mpn/x86_64/bd1/hamdist.asm	Thu Jun 01 18:24:59 2017 +0200
@@ -190,7 +190,7 @@
 	add	%r10, %rax
 	ret
 EPILOGUE()
-DEF_OBJECT(L(cnsts),16)
+DEF_OBJECT(L(cnsts),16,`JUMPTABSECT')
 	JMPENT(	L(top), L(cnsts))
 	JMPENT(	L(1), L(cnsts))
 	JMPENT(	L(2), L(cnsts))
diff -r e592a6525a17 -r bdfde16d199e mpn/x86_64/bd1/popcount.asm
--- a/mpn/x86_64/bd1/popcount.asm	Thu Jun 01 15:27:51 2017 +0200
+++ b/mpn/x86_64/bd1/popcount.asm	Thu Jun 01 18:24:59 2017 +0200
@@ -170,7 +170,7 @@
 	add	%rdx, %rax
 	ret
 EPILOGUE()
-DEF_OBJECT(L(cnsts),16)
+DEF_OBJECT(L(cnsts),16,`JUMPTABSECT')
 	JMPENT(	L(top), L(cnsts))
 	JMPENT(	L(1), L(cnsts))
 	JMPENT(	L(2), L(cnsts))
diff -r e592a6525a17 -r bdfde16d199e mpn/x86_64/core2/hamdist.asm
--- a/mpn/x86_64/core2/hamdist.asm	Thu Jun 01 15:27:51 2017 +0200
+++ b/mpn/x86_64/core2/hamdist.asm	Thu Jun 01 18:24:59 2017 +0200
@@ -193,7 +193,7 @@
 	movq	%xmm0, %rax
 	ret
 EPILOGUE()
-DEF_OBJECT(L(cnsts),16)
+DEF_OBJECT(L(cnsts),16,`JUMPTABSECT')
 	JMPENT(	L(top), L(cnsts))
 	JMPENT(	L(1), L(cnsts))
 	JMPENT(	L(2), L(cnsts))
diff -r e592a6525a17 -r bdfde16d199e mpn/x86_64/core2/popcount.asm
--- a/mpn/x86_64/core2/popcount.asm	Thu Jun 01 15:27:51 2017 +0200
+++ b/mpn/x86_64/core2/popcount.asm	Thu Jun 01 18:24:59 2017 +0200
@@ -168,7 +168,7 @@
 	movq	%xmm0, %rax
 	ret
 EPILOGUE()
-DEF_OBJECT(L(cnsts),16)
+DEF_OBJECT(L(cnsts),16,`JUMPTABSECT')
 	JMPENT(	L(top), L(cnsts))
 	JMPENT(	L(1), L(cnsts))
 	JMPENT(	L(2), L(cnsts))
diff -r e592a6525a17 -r bdfde16d199e mpn/x86_64/x86_64-defs.m4
--- a/mpn/x86_64/x86_64-defs.m4	Thu Jun 01 15:27:51 2017 +0200
+++ b/mpn/x86_64/x86_64-defs.m4	Thu Jun 01 18:24:59 2017 +0200
@@ -2,7 +2,8 @@
 
 dnl  m4 macros for amd64 assembler.
 
-dnl  Copyright 1999-2005, 2008, 2009, 2011-2013 Free Software Foundation, Inc.
+dnl  Copyright 1999-2005, 2008, 2009, 2011-2013, 2017 Free Software Foundation,
+dnl  Inc.
 
 dnl  This file is part of the GNU MP Library.
 dnl
@@ -144,9 +145,9 @@
 
 
 define(`DEF_OBJECT',
-m4_assert_numargs_range(1,2)
-`	RODATA
-	ALIGN(ifelse($#,1,2,$2))
+m4_assert_numargs_range(2,3)
+`	ifelse($#,3,$3,`RODATA')
+	ALIGN($2)
 $1:
 ')
 


More information about the gmp-commit mailing list