Ran automake and fixed a bug in the test.

This commit is contained in:
(no author) 2010-02-19 22:18:28 +00:00
parent 2ba08515f1
commit b572d22940
3 changed files with 20 additions and 11 deletions

View File

@ -29,7 +29,7 @@ check_PROGRAMS = t-asmtype t-aors_1 t-divrem_1 t-fat t-get_d \
t-redc_basecase t-divebyBm1of t-mullowhigh t-mullow_basecase \
t-neg t-mulmod_2expp1 t-mulmod_2expm1 t-tdiv_q t-sb_divappr_q \
t-dc_divappr_q_n t-inv_divappr_q_n t-invert t-sb_div_q t-sb_div_qr \
t-dc_div_q
t-dc_div_q t-dc_div_qr
if ENABLE_STATIC
if ENABLE_SHARED

View File

@ -63,7 +63,7 @@ check_PROGRAMS = t-asmtype$(EXEEXT) t-aors_1$(EXEEXT) \
t-sb_divappr_q$(EXEEXT) t-dc_divappr_q_n$(EXEEXT) \
t-inv_divappr_q_n$(EXEEXT) t-invert$(EXEEXT) \
t-sb_div_q$(EXEEXT) t-sb_div_qr$(EXEEXT) t-dc_div_q$(EXEEXT) \
$(am__EXEEXT_1)
t-dc_div_qr$(EXEEXT) $(am__EXEEXT_1)
@ENABLE_SHARED_TRUE@@ENABLE_STATIC_TRUE@am__append_1 = st_fat st_instrument
subdir = tests/mpn
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
@ -122,6 +122,11 @@ t_dc_div_q_OBJECTS = t-dc_div_q.$(OBJEXT)
t_dc_div_q_LDADD = $(LDADD)
t_dc_div_q_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
$(top_builddir)/libmpir.la
t_dc_div_qr_SOURCES = t-dc_div_qr.c
t_dc_div_qr_OBJECTS = t-dc_div_qr.$(OBJEXT)
t_dc_div_qr_LDADD = $(LDADD)
t_dc_div_qr_DEPENDENCIES = $(top_builddir)/tests/libtests.la \
$(top_builddir)/libmpir.la
t_dc_divappr_q_n_SOURCES = t-dc_divappr_q_n.c
t_dc_divappr_q_n_OBJECTS = t-dc_divappr_q_n.$(OBJEXT)
t_dc_divappr_q_n_LDADD = $(LDADD)
@ -265,7 +270,7 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
$(LDFLAGS) -o $@
SOURCES = $(st_fat_SOURCES) $(st_instrument_SOURCES) t-addadd_n.c \
t-addsub_n.c t-aors_1.c t-asmtype.c t-dc_div_q.c \
t-addsub_n.c t-aors_1.c t-asmtype.c t-dc_div_q.c t-dc_div_qr.c \
t-dc_divappr_q_n.c t-divebyBm1of.c t-divebyff.c t-divrem_1.c \
t-fat.c t-get_d.c t-instrument.c t-inv_divappr_q_n.c \
t-invert.c t-iord_u.c t-lorrshift1.c t-mp_bases.c \
@ -275,13 +280,14 @@ SOURCES = $(st_fat_SOURCES) $(st_instrument_SOURCES) t-addadd_n.c \
t-scan.c t-subadd_n.c t-tdiv_q.c
DIST_SOURCES = $(am__st_fat_SOURCES_DIST) \
$(am__st_instrument_SOURCES_DIST) t-addadd_n.c t-addsub_n.c \
t-aors_1.c t-asmtype.c t-dc_div_q.c t-dc_divappr_q_n.c \
t-divebyBm1of.c t-divebyff.c t-divrem_1.c t-fat.c t-get_d.c \
t-instrument.c t-inv_divappr_q_n.c t-invert.c t-iord_u.c \
t-lorrshift1.c t-mp_bases.c t-mullow_basecase.c t-mullowhigh.c \
t-mulmid.c t-mulmod_2expm1.c t-mulmod_2expp1.c t-neg.c \
t-perfsqr.c t-redc_basecase.c t-sb_div_q.c t-sb_div_qr.c \
t-sb_divappr_q.c t-scan.c t-subadd_n.c t-tdiv_q.c
t-aors_1.c t-asmtype.c t-dc_div_q.c t-dc_div_qr.c \
t-dc_divappr_q_n.c t-divebyBm1of.c t-divebyff.c t-divrem_1.c \
t-fat.c t-get_d.c t-instrument.c t-inv_divappr_q_n.c \
t-invert.c t-iord_u.c t-lorrshift1.c t-mp_bases.c \
t-mullow_basecase.c t-mullowhigh.c t-mulmid.c \
t-mulmod_2expm1.c t-mulmod_2expp1.c t-neg.c t-perfsqr.c \
t-redc_basecase.c t-sb_div_q.c t-sb_div_qr.c t-sb_divappr_q.c \
t-scan.c t-subadd_n.c t-tdiv_q.c
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@ -505,6 +511,9 @@ t-asmtype$(EXEEXT): $(t_asmtype_OBJECTS) $(t_asmtype_DEPENDENCIES)
t-dc_div_q$(EXEEXT): $(t_dc_div_q_OBJECTS) $(t_dc_div_q_DEPENDENCIES)
@rm -f t-dc_div_q$(EXEEXT)
$(LINK) $(t_dc_div_q_OBJECTS) $(t_dc_div_q_LDADD) $(LIBS)
t-dc_div_qr$(EXEEXT): $(t_dc_div_qr_OBJECTS) $(t_dc_div_qr_DEPENDENCIES)
@rm -f t-dc_div_qr$(EXEEXT)
$(LINK) $(t_dc_div_qr_OBJECTS) $(t_dc_div_qr_LDADD) $(LIBS)
t-dc_divappr_q_n$(EXEEXT): $(t_dc_divappr_q_n_OBJECTS) $(t_dc_divappr_q_n_DEPENDENCIES)
@rm -f t-dc_divappr_q_n$(EXEEXT)
$(LINK) $(t_dc_divappr_q_n_OBJECTS) $(t_dc_divappr_q_n_LDADD) $(LIBS)

View File

@ -56,7 +56,7 @@ check_dc_div_qr (void)
for (i = 0; i < ITERS; i++)
{
dn = (random() % (MAX_LIMBS - 5)) + 6;
nn = (random() % (MAX_LIMBS - 1)) + dn + 1;
nn = (random() % (MAX_LIMBS - 3)) + dn + 3;
mpn_rrandom (np, rands, nn);
mpn_rrandom (dp, rands, dn);