summaryrefslogtreecommitdiff
path: root/tune/Makefile.am
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-12-06 00:25:29 +0100
committerKevin Ryde <user42@zip.com.au>2000-12-06 00:25:29 +0100
commitf83b5399598b189978715b1c49f39fc6b73461fc (patch)
tree64dc07ad957b3eba2f585340b025a1a0eb5f2bba /tune/Makefile.am
parent8309ec4cce3916e9ba71dd7ea4ba5d9f5d87b600 (diff)
downloadgmp-f83b5399598b189978715b1c49f39fc6b73461fc.tar.gz
* tune/{divrem,mod}_1_{div,inv}.c,gcdext_double.c: New files for
measuring. * tune/Makefile.am (libspeed_la_SOURCES): Add them. * tune/Makefile.am (TUNE_MPN_SRCS): Add divrem_1.c and mod_1.c.
Diffstat (limited to 'tune/Makefile.am')
-rw-r--r--tune/Makefile.am21
1 files changed, 16 insertions, 5 deletions
diff --git a/tune/Makefile.am b/tune/Makefile.am
index 2f0119d23..83fc0e8d7 100644
--- a/tune/Makefile.am
+++ b/tune/Makefile.am
@@ -31,9 +31,10 @@ noinst_HEADERS = speed.h
EXTRA_LTLIBRARIES = libspeed.la libdummy.la
libspeed_la_SOURCES = \
- common.c freq.c gcd_bin.c gcd_finda_gen.c \
- gcdext_single.c gcdextod.c gcdextos.c \
- modlinv.c mul_n_mpn.c mul_n_open.c noop.c powm_mod.c powm_redc.c time.c
+ common.c divrem_1_div.c divrem_1_inv.c freq.c gcd_bin.c gcd_finda_gen.c \
+ gcdext_single.c gcdext_double.c gcdextod.c gcdextos.c \
+ mod_1_div.c mod_1_inv.c modlinv.c mul_n_mpn.c mul_n_open.c \
+ noop.c powm_mod.c powm_redc.c time.c
libspeed_la_DEPENDENCIES = $(SPEED_CYCLECOUNTER_OBJ) $(top_builddir)/libgmp.la
libspeed_la_LIBADD = $(libspeed_la_DEPENDENCIES) $(LIBM)
@@ -90,13 +91,14 @@ DISTCLEANFILES = sqr_basecase.c
# FIXME: Would like for example mul_n.c to depend on $(top_builddir)/mul_n.c
# so the recompiled object will be rebuilt if that file changes.
-TUNE_MPN_SRCS = mul_n.c mul_fft.c mul.c dc_divrem_n.c tdiv_qr.c gcd.c
+TUNE_MPN_SRCS = \
+ dc_divrem_n.c divrem_1.c gcd.c mod_1.c mul_n.c mul_fft.c mul.c tdiv_qr.c
TUNE_MPZ_SRCS = fib_ui.c
$(TUNE_MPN_SRCS):
for i in $(TUNE_MPN_SRCS); do \
echo "#define TUNE_PROGRAM_BUILD 1" >$$i; \
- echo "#include \"mpn/$$i\"" >>$$i; \
+ echo "#include \"mpn/generic/$$i\"" >>$$i; \
done
$(TUNE_MPZ_SRCS):
@@ -150,6 +152,15 @@ 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_mul.-1
+divun:
+ ./speed -s 1-30 -c mpn_divrem_1_div.12345 mpn_divrem_1_mul.12345
+modn:
+ ./speed -s 1-30 -c mpn_mod_1_div.-1 mpn_mod_1_mul.-1
+modun:
+ ./speed -s 1-30 -c mpn_mod_1_div.12345 mpn_mod_1_mul.12345
+
graph:
./speed -s 1-5000 -f 1.02 -P graph mpn_mul_n mpn_sqr