invert_limb_table and "generic" code

Niels Möller nisse at
Mon May 2 23:14:15 CEST 2011

Torbjorn Granlund <tg at> writes:

> David Harvey <dmharvey at> writes:
>   configure: error: no version of invert_limb_table found in path: generic
>   It looks like maybe the --disable-assembly option is buggy, it doesn't even exist in GMP 5.0.
> Yes, it was added recently.
> Niels, perhaps you could take a look at this?  

invert_limb_table is added to extra_functions_64, for x86_&$ hosts. I
though files on that list are optional, but maybe I misunderstood. Does
the below work, and if so, is it the right way to solve the problem?

diff -r 588de4e62671
--- a/   Mon May 02 19:41:32 2011 +0200
+++ b/   Mon May 02 23:10:54 2011 +0200
@@ -1515,7 +1515,9 @@ case $host in
 	abilist="64 32"
-	extra_functions_64="invert_limb_table"
+	if test "$enable_assembly" = "yes ; then
+	    extra_functions_64="invert_limb_table"
+	fi
	case $host_cpu in

Or would it be better to add it to the more global
gmp_mpn_functions_optional (which aren't required, right?).


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list