From 21c652d4427dd75e860eadb2b791da40f8c0758e Mon Sep 17 00:00:00 2001 From: jasonmoxham Date: Tue, 11 Aug 2009 23:09:56 +0000 Subject: [PATCH] remove some referances to the old functions --- mpz/remove.c | 2 +- tests/mpz/t-powm.c | 4 ++-- tune/Makefile.am | 52 ---------------------------------------------- tune/Makefile.in | 47 ----------------------------------------- 4 files changed, 3 insertions(+), 102 deletions(-) diff --git a/mpz/remove.c b/mpz/remove.c index 523edf1b..5f733f1f 100644 --- a/mpz/remove.c +++ b/mpz/remove.c @@ -44,7 +44,7 @@ mpz_remove (mpz_ptr dest, mpz_srcptr src, mpz_srcptr f) { unsigned long int s0; s0 = mpz_scan1 (src, 0); - mpz_div_2exp (dest, src, s0); + mpz_fdiv_q_2exp (dest, src, s0); return s0; } diff --git a/tests/mpz/t-powm.c b/tests/mpz/t-powm.c index 886cda62..eb561d71 100644 --- a/tests/mpz/t-powm.c +++ b/tests/mpz/t-powm.c @@ -1,4 +1,4 @@ -/* Test mpz_powm, mpz_mul. mpz_mod, mpz_mod_ui, mpz_div_ui. +/* Test mpz_powm, mpz_mul. mpz_mod, mpz_mod_ui, mpz_fdiv_q_ui. Copyright 1991, 1993, 1994, 1996, 1999, 2000, 2001 Free Software Foundation, Inc. @@ -107,7 +107,7 @@ main (int argc, char **argv) } mpz_mul (base2, base2, base2); mpz_mod (base2, base2, mod); - mpz_div_ui (exp2, exp2, 2); + mpz_fdiv_q_ui (exp2, exp2, 2); } if (mpz_cmp (r1, r2) != 0) diff --git a/tune/Makefile.am b/tune/Makefile.am index cbacd502..0fddfb72 100644 --- a/tune/Makefile.am +++ b/tune/Makefile.am @@ -152,55 +152,3 @@ sqr_asm.asm: $(top_builddir)/mpn/sqr_basecase.asm include ../mpn/Makeasm.am - - -# "mk" is multiplication in the karatsuba range -# "st" is squaring in the toom-cook range, etc -# "g" forms produce graphs - -mk: - ./speed -s 5-40 -c mpn_mul_basecase mpn_kara_mul_n - -MTS = -s 50-150 -c -mt: - ./speed $(MTS) mpn_kara_mul_n mpn_toom3_mul_n -mtg: - ./speed $(MTS) -P mtg mpn_kara_mul_n mpn_toom3_mul_n - -sk: - ./speed -s 5-40 -c mpn_sqr_basecase mpn_kara_sqr_n - -STS = -s 50-150 -c -st: - ./speed $(STS) mpn_kara_sqr_n mpn_toom3_sqr_n -stg: - ./speed $(STS) -P stg mpn_kara_sqr_n mpn_toom3_sqr_n - -dc: - ./speed -s 5-40 -c mpn_dc_divrem_sb mpn_dc_divrem_n mpn_dc_tdiv_qr - -fib: - ./speed -s 40-60 -c mpz_fib_ui -fibg: - ./speed -s 10-300 -P fibg mpz_fib_ui - - -gcd: - ./speed -s 1-20 -c mpn_gcd - -udiv: - ./speed -s 1 -c udiv_qrnnd udiv_qrnnd_preinv udiv_qrnnd_preinv2norm invert_limb udiv_qrnnd_c - -divn: - ./speed -s 1-30 -c mpn_divrem_1_div.-1 mpn_divrem_1_inv.-1 -divun: - ./speed -s 1-30 -c mpn_divrem_1_div.12345 mpn_divrem_1_inv.12345 -modn: - ./speed -s 1-30 -c mpn_mod_1_div.-1 mpn_mod_1_inv.-1 -modun: - ./speed -s 1-30 -c mpn_mod_1_div.12345 mpn_mod_1_inv.12345 - - -graph: - ./speed -s 1-5000 -f 1.02 -P graph mpn_mul_n mpn_sqr - gnuplot graph.gnuplot diff --git a/tune/Makefile.in b/tune/Makefile.in index 3004069b..039341c4 100644 --- a/tune/Makefile.in +++ b/tune/Makefile.in @@ -407,8 +407,6 @@ SUFFIXES = .s .S .as .asm # can be overridden during development, eg. "make RM_TMP=: mul_1.lo" RM_TMP = rm -f -MTS = -s 50-150 -c -STS = -s 50-150 -c all: all-am .SUFFIXES: @@ -869,51 +867,6 @@ sqr_asm.asm: $(top_builddir)/mpn/sqr_basecase.asm .as.lo: $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/strip_fPIC.sh $(top_builddir)$(MPIR_AS) -I $(top_builddir) $(OBJECT_FORMAT) $(GSYM_FLAG) -o $@ `test -f '$<' || echo '$(srcdir)/'`$< - -# "mk" is multiplication in the karatsuba range -# "st" is squaring in the toom-cook range, etc -# "g" forms produce graphs - -mk: - ./speed -s 5-40 -c mpn_mul_basecase mpn_kara_mul_n -mt: - ./speed $(MTS) mpn_kara_mul_n mpn_toom3_mul_n -mtg: - ./speed $(MTS) -P mtg mpn_kara_mul_n mpn_toom3_mul_n - -sk: - ./speed -s 5-40 -c mpn_sqr_basecase mpn_kara_sqr_n -st: - ./speed $(STS) mpn_kara_sqr_n mpn_toom3_sqr_n -stg: - ./speed $(STS) -P stg mpn_kara_sqr_n mpn_toom3_sqr_n - -dc: - ./speed -s 5-40 -c mpn_dc_divrem_sb mpn_dc_divrem_n mpn_dc_tdiv_qr - -fib: - ./speed -s 40-60 -c mpz_fib_ui -fibg: - ./speed -s 10-300 -P fibg mpz_fib_ui - -gcd: - ./speed -s 1-20 -c mpn_gcd - -udiv: - ./speed -s 1 -c udiv_qrnnd udiv_qrnnd_preinv udiv_qrnnd_preinv2norm invert_limb udiv_qrnnd_c - -divn: - ./speed -s 1-30 -c mpn_divrem_1_div.-1 mpn_divrem_1_inv.-1 -divun: - ./speed -s 1-30 -c mpn_divrem_1_div.12345 mpn_divrem_1_inv.12345 -modn: - ./speed -s 1-30 -c mpn_mod_1_div.-1 mpn_mod_1_inv.-1 -modun: - ./speed -s 1-30 -c mpn_mod_1_div.12345 mpn_mod_1_inv.12345 - -graph: - ./speed -s 1-5000 -f 1.02 -P graph mpn_mul_n mpn_sqr - gnuplot graph.gnuplot # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: