Remove exception hooks in favor of real C++ exceptions:
* include/cln/exception.h: New file...
* include/cln/cln.h: ...included here...
* include/cln/rational.h: ...and here.
* include/cln/abort.h: Removed.
* include/cln/integer.h (ash_exception, exquo_exception): Add exception
types.
* include/cln/float.h (floating_point_exception,
floating_point_nan_exception, floating_point_overflow_exception,
floating_point_underflow_exception): Likewise.
* include/cln/number_io.h (read_number_exception,
read_number_bad_syntax_exception, read_number_junk_exception,
read_number_eof_exception): Likewise.
* include/cln/object.h (CL_DEFINE_CONVERTER): Replace dynamic assertion
with a compile-time assertion.
* include/cln/GV.h: Replace nonreturning functions with exceptions.
* include/cln/modinteger.h: Likewise.
* include/cln/SV.h: Likewise.
* include/cln/ring.h: Likewise.
* include/cln/string.h: Likewise.
* include/cln/univpoly.h: Likewise.
* src/base/cl_abort.cc: Removed.
* src/base/cl_N_err_d0.cc: Removed.
* src/base/cl_d0_exception.cc: New file.
* src/base/cl_as_err.cc: Removed.
* src/base/cl_as_exception.cc: New file.
* src/base/cl_notreached.cc: Removed.
* src/base/cl_notreached_exception.cc: New file.
* src/base/input/cl_read_err_bad.cc: Removed.
* src/base/input/cl_read_bad_syntax_exception.cc: New file.
* src/base/input/cl_read_err_junk.cc: Removed.
* src/base/input/cl_read_junk_exception.cc: New file.
* src/base/input/cl_read_err_eof.cc: Removed.
* src/base/input/cl_read_eof_exception.cc: New file.
* src/base/cl_N.h (cl_as_error): Removed (see cln/exception.h).
* src/base/macros.h (NOTREACHED): Throw.
* src/base/cl_malloc.cc (xmalloc): Throw.
* src/base/digitseq/cl_2DS_div.cc: Throw.
* src/base/digitseq/cl_DS_div.cc: Throw.
* src/base/digitseq/cl_DS_mul.cc: Throw.
* src/base/digitseq/cl_DS_mul_fftc.h: Throw.
* src/base/digitseq/cl_DS_mul_fftcs.h: Throw.
* src/base/digitseq/cl_DS_mul_fftm.h: Throw.
* src/base/digitseq/cl_DS_mul_fftp.h: Throw.
* src/base/digitseq/cl_DS_mul_fftp3.h: Throw.
* src/base/digitseq/cl_DS_mul_fftp3m.h: Throw.
* src/base/digitseq/cl_DS_mul_fftr.h: Throw.
* src/base/digitseq/cl_DS_mul_nuss.h: Throw.
* src/base/digitseq/cl_DS_recipsqrt.cc: Throw.
* src/base/digitseq/cl_DS_sqrt.cc: Throw.
* src/base/hash/cl_hash.h: Throw.
* src/base/hash/cl_hash1.h: Throw.
* src/base/hash/cl_hash1weak.h: Throw.
* src/base/hash/cl_hash2.h: Throw.
* src/base/hash/cl_hash2weak.h: Throw.
* src/base/hash/cl_hashset.h: Throw.
* src/base/hash/cl_hashuniq.h: Throw.
* src/base/hash/cl_hashuniqweak.h: Throw.
* src/base/proplist/cl_pl_add.cc: Throw.
* src/base/ring/cl_no_ring.cc: Throw.
* src/base/string/cl_spushstring.h: Throw.
* src/base/symbol/cl_symbol.cc: Throw.
* src/integer/bitwise/cl_I_ash.h: Removed (see cln/integer.h.)
* src/integer/bitwise/cl_I_asherr.cc: Removed.
* src/integer/bitwise/cl_I_ash_exception.cc: New file.
* src/integer/division/cl_I_exquoerr.cc: Removed.
* src/integer/division/cl_I_exquo_exception.cc: New file.
* src/integer/cl_I.h: Throw.
* src/integer/division/cl_I_exquopos.cc: Throw.
* src/integer/bitwise/cl_I_logbitp_I.cc: Throw.
* src/integer/bitwise/cl_I_ash.cc: Throw.
* src/integer/bitwise/cl_I_ash_I.cc: Throw.
* src/integer/division/cl_I_exquo.cc: Throw.
* src/integer/gcd/cl_I_gcd_aux2.cc: Throw.
* src/integer/conv/cl_I_to_L.cc: Throw.
* src/integer/conv/cl_I_to_Q.cc: Throw.
* src/integer/conv/cl_I_to_UL.cc: Throw.
* src/integer/conv/cl_I_to_UQ.cc: Throw.
* src/integer/conv/cl_I_to_digits.cc: Throw.
* src/integer/elem/cl_I_div.cc: Throw.
* src/integer/algebraic/cl_I_sqrt.cc: Throw.
* src/integer/input/cl_I_read.cc: Throw.
* src/integer/input/cl_I_read_stream.cc: Throw.
* src/integer/misc/cl_I_as.cc: Throw.
* src/rational/elem/cl_RA_from_I_I_div.cc: Throw.
* src/rational/elem/cl_RA_recip.cc: Throw.
* src/rational/input/cl_RA_read.cc: Throw.
* src/rational/input/cl_RA_read_stream.cc: Throw.
* src/rational/input/cl_RA_readparsed.cc: Throw.
* src/rational/misc/cl_RA_as.cc: Throw.
* src/float/base/cl_F_err_nan.cc: Removed.
* src/float/base/cl_F_nan_exception.cc: New file.
* src/float/base/cl_F_err_un.cc: Removed.
* src/float/base/cl_F_underflow_exception.cc: New file.
* src/float/base/cl_F_err_ov.cc: Removed.
* src/float/base/cl_F_overflow_exception.cc: New file.
* src/float/cl_F.h (cl_error_floating_point_nan,
cl_error_floating_point_overflow, cl_error_floating_point_underflow):
Removed (see cln/float.h.)
* src/float/sfloat/cl_SF.h: Throw.
* src/float/sfloat/elem/cl_SF_div.cc: Throw.
* src/float/sfloat/elem/cl_SF_from_RA.cc: Throw.
* src/float/sfloat/elem/cl_SF_scale.cc: Throw.
* src/float/sfloat/elem/cl_SF_scale_I.cc: Throw.
* src/float/sfloat/misc/cl_SF_as.cc: Throw.
* src/float/ffloat/cl_FF.h: Throw.
* src/float/ffloat/conv/cl_FF_from_float.cc: Throw.
* src/float/ffloat/elem/cl_FF_div.cc: Throw.
* src/float/ffloat/elem/cl_FF_from_RA.cc: Throw.
* src/float/ffloat/elem/cl_FF_scale.cc: Throw.
* src/float/ffloat/elem/cl_FF_scale_I.cc: Throw.
* src/float/ffloat/misc/cl_FF_as.cc: Throw.
* src/float/dfloat/cl_DF.h: Throw.
* src/float/dfloat/conv/cl_DF_from_double.cc: Throw.
* src/float/dfloat/elem/cl_DF_div.cc: Throw.
* src/float/dfloat/elem/cl_DF_from_RA.cc: Throw.
* src/float/dfloat/elem/cl_DF_scale.cc: Throw.
* src/float/dfloat/elem/cl_DF_scale_I.cc: Throw.
* src/float/dfloat/misc/cl_DF_as.cc: Throw.
* src/float/lfloat/algebraic/cl_LF_sqrt.cc: Throw.
* src/float/lfloat/elem/cl_LF_1plus.cc: Throw.
* src/float/lfloat/elem/cl_LF_I_div.cc: Throw.
* src/float/lfloat/elem/cl_LF_I_mul.cc: Throw.
* src/float/lfloat/elem/cl_LF_div.cc: Throw.
* src/float/lfloat/elem/cl_LF_from_I.cc: Throw.
* src/float/lfloat/elem/cl_LF_mul.cc: Throw.
* src/float/lfloat/elem/cl_LF_scale.cc: Throw.
* src/float/lfloat/elem/cl_LF_scale_I.cc: Throw.
* src/float/lfloat/elem/cl_LF_square.cc: Throw.
* src/float/lfloat/misc/cl_LF_as.cc: Throw.
* src/float/lfloat/misc/cl_LF_shorten.cc: Throw.
* src/float/lfloat/misc/cl_LF_shortenrel.cc: Throw.
* src/float/lfloat/misc/cl_LF_shortenwith.cc: Throw.
* src/float/input/cl_F_read.cc: Throw.
* src/float/input/cl_F_read_stream.cc: Throw.
* src/float/misc/cl_F_as.cc: Throw.
* src/float/misc/cl_F_shortenrel.cc: Throw.
* src/float/transcendental/cl_LF_coshsinh_aux.cc: Throw.
* src/float/transcendental/cl_LF_cossin_aux.cc: Throw.
* src/float/transcendental/cl_LF_exp_aux.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_a.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_ab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_b.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_p.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pb.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pq.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pqa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pqab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pqb.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_q.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_qa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_qab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_qb.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pq.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pqa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pqab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pqb.cc: Throw.
* src/float/transcendental/cl_LF_ratsumseries_pqcd_aux.cc: Throw.
* src/float/transcendental/cl_LF_ratsumseries_pqd.cc: Throw.
* src/float/transcendental/cl_LF_ratsumseries_pqd_aux.cc: Throw.
* src/float/transcendental/cl_LF_zeta_int.cc: Throw.
* src/real/elem/cl_R_div.cc: Throw.
* src/real/format-output/cl_fmt_cardinal.cc: Throw.
* src/real/format-output/cl_fmt_newroman.cc: Throw.
* src/real/format-output/cl_fmt_oldroman.cc: Throw.
* src/real/input/cl_R_read.cc: Throw.
* src/real/input/cl_R_read_stream.cc: Throw.
* src/real/misc/cl_R_as.cc: Throw.
* src/real/random/cl_R_random.cc: Throw.
* src/real/transcendental/cl_R_atan2.cc: Throw.
* src/real/transcendental/cl_R_log.cc: Throw.
* src/complex/input/cl_N_read.cc: Throw.
* src/complex/input/cl_N_read_stream.cc: Throw.
* src/complex/misc/cl_N_as.cc: Throw.
* src/complex/transcendental/cl_C_atanh_aux.cc: Throw.
* src/complex/transcendental/cl_C_expt_C.cc: Throw.
* src/complex/transcendental/cl_C_log.cc: Throw.
* src/complex/transcendental/cl_C_log2.cc: Throw.
* src/numtheory/cl_nt_cornacchia1.cc: Throw.
* src/numtheory/cl_nt_cornacchia4.cc: Throw.
* src/numtheory/cl_nt_isprobprime.cc: Throw.
* src/numtheory/cl_nt_jacobi.cc: Throw.
* src/numtheory/cl_nt_jacobi_low.cc: Throw.
* src/numtheory/cl_nt_sqrtmodp.cc: Throw.
* src/modinteger/cl_MI.cc: Throw.
* src/modinteger/cl_MI_int.h: Throw.
* src/modinteger/cl_MI_montgom.h: Throw.
* src/modinteger/cl_MI_pow2.h: Throw.
* src/modinteger/cl_MI_rshift.cc: Throw.
* src/modinteger/cl_MI_std.h: Throw.
* src/polynomial/elem/cl_UP_GF2.h: Throw.
* src/polynomial/elem/cl_UP_MI.h: Throw.
* src/polynomial/elem/cl_UP_gen.h: Throw.
* src/polynomial/elem/cl_UP_named.cc: Throw.
* src/polynomial/elem/cl_UP_no_ring.cc (uninitialized_error,
uninitialized_ring): Removed (see cln/ring.h.)
* src/polynomial/elem/cl_UP_number.h: Throw.
* src/polynomial/elem/cl_UP_unnamed.cc: Throw.
* src/vector/cl_GV_I.cc: Throw.
* src/vector/cl_GV_number.cc: Throw.
* tests/timediv2adic-compare.cc: Use default abort(), not cl_abort().
* tests/timeprint-compare.cc: Likewise.
* tests/timerecip2adic-compare.cc: Likewise.
* doc/cln.tex: Document the exception classes.
* examples/contfrac.cc: Use try/catch instead of setjmp/longjmp.
* INSTALL: undocument -fno-exceptions.
* README: Add exceptions to list of used C++ features.
18 years ago Remove exception hooks in favor of real C++ exceptions:
* include/cln/exception.h: New file...
* include/cln/cln.h: ...included here...
* include/cln/rational.h: ...and here.
* include/cln/abort.h: Removed.
* include/cln/integer.h (ash_exception, exquo_exception): Add exception
types.
* include/cln/float.h (floating_point_exception,
floating_point_nan_exception, floating_point_overflow_exception,
floating_point_underflow_exception): Likewise.
* include/cln/number_io.h (read_number_exception,
read_number_bad_syntax_exception, read_number_junk_exception,
read_number_eof_exception): Likewise.
* include/cln/object.h (CL_DEFINE_CONVERTER): Replace dynamic assertion
with a compile-time assertion.
* include/cln/GV.h: Replace nonreturning functions with exceptions.
* include/cln/modinteger.h: Likewise.
* include/cln/SV.h: Likewise.
* include/cln/ring.h: Likewise.
* include/cln/string.h: Likewise.
* include/cln/univpoly.h: Likewise.
* src/base/cl_abort.cc: Removed.
* src/base/cl_N_err_d0.cc: Removed.
* src/base/cl_d0_exception.cc: New file.
* src/base/cl_as_err.cc: Removed.
* src/base/cl_as_exception.cc: New file.
* src/base/cl_notreached.cc: Removed.
* src/base/cl_notreached_exception.cc: New file.
* src/base/input/cl_read_err_bad.cc: Removed.
* src/base/input/cl_read_bad_syntax_exception.cc: New file.
* src/base/input/cl_read_err_junk.cc: Removed.
* src/base/input/cl_read_junk_exception.cc: New file.
* src/base/input/cl_read_err_eof.cc: Removed.
* src/base/input/cl_read_eof_exception.cc: New file.
* src/base/cl_N.h (cl_as_error): Removed (see cln/exception.h).
* src/base/macros.h (NOTREACHED): Throw.
* src/base/cl_malloc.cc (xmalloc): Throw.
* src/base/digitseq/cl_2DS_div.cc: Throw.
* src/base/digitseq/cl_DS_div.cc: Throw.
* src/base/digitseq/cl_DS_mul.cc: Throw.
* src/base/digitseq/cl_DS_mul_fftc.h: Throw.
* src/base/digitseq/cl_DS_mul_fftcs.h: Throw.
* src/base/digitseq/cl_DS_mul_fftm.h: Throw.
* src/base/digitseq/cl_DS_mul_fftp.h: Throw.
* src/base/digitseq/cl_DS_mul_fftp3.h: Throw.
* src/base/digitseq/cl_DS_mul_fftp3m.h: Throw.
* src/base/digitseq/cl_DS_mul_fftr.h: Throw.
* src/base/digitseq/cl_DS_mul_nuss.h: Throw.
* src/base/digitseq/cl_DS_recipsqrt.cc: Throw.
* src/base/digitseq/cl_DS_sqrt.cc: Throw.
* src/base/hash/cl_hash.h: Throw.
* src/base/hash/cl_hash1.h: Throw.
* src/base/hash/cl_hash1weak.h: Throw.
* src/base/hash/cl_hash2.h: Throw.
* src/base/hash/cl_hash2weak.h: Throw.
* src/base/hash/cl_hashset.h: Throw.
* src/base/hash/cl_hashuniq.h: Throw.
* src/base/hash/cl_hashuniqweak.h: Throw.
* src/base/proplist/cl_pl_add.cc: Throw.
* src/base/ring/cl_no_ring.cc: Throw.
* src/base/string/cl_spushstring.h: Throw.
* src/base/symbol/cl_symbol.cc: Throw.
* src/integer/bitwise/cl_I_ash.h: Removed (see cln/integer.h.)
* src/integer/bitwise/cl_I_asherr.cc: Removed.
* src/integer/bitwise/cl_I_ash_exception.cc: New file.
* src/integer/division/cl_I_exquoerr.cc: Removed.
* src/integer/division/cl_I_exquo_exception.cc: New file.
* src/integer/cl_I.h: Throw.
* src/integer/division/cl_I_exquopos.cc: Throw.
* src/integer/bitwise/cl_I_logbitp_I.cc: Throw.
* src/integer/bitwise/cl_I_ash.cc: Throw.
* src/integer/bitwise/cl_I_ash_I.cc: Throw.
* src/integer/division/cl_I_exquo.cc: Throw.
* src/integer/gcd/cl_I_gcd_aux2.cc: Throw.
* src/integer/conv/cl_I_to_L.cc: Throw.
* src/integer/conv/cl_I_to_Q.cc: Throw.
* src/integer/conv/cl_I_to_UL.cc: Throw.
* src/integer/conv/cl_I_to_UQ.cc: Throw.
* src/integer/conv/cl_I_to_digits.cc: Throw.
* src/integer/elem/cl_I_div.cc: Throw.
* src/integer/algebraic/cl_I_sqrt.cc: Throw.
* src/integer/input/cl_I_read.cc: Throw.
* src/integer/input/cl_I_read_stream.cc: Throw.
* src/integer/misc/cl_I_as.cc: Throw.
* src/rational/elem/cl_RA_from_I_I_div.cc: Throw.
* src/rational/elem/cl_RA_recip.cc: Throw.
* src/rational/input/cl_RA_read.cc: Throw.
* src/rational/input/cl_RA_read_stream.cc: Throw.
* src/rational/input/cl_RA_readparsed.cc: Throw.
* src/rational/misc/cl_RA_as.cc: Throw.
* src/float/base/cl_F_err_nan.cc: Removed.
* src/float/base/cl_F_nan_exception.cc: New file.
* src/float/base/cl_F_err_un.cc: Removed.
* src/float/base/cl_F_underflow_exception.cc: New file.
* src/float/base/cl_F_err_ov.cc: Removed.
* src/float/base/cl_F_overflow_exception.cc: New file.
* src/float/cl_F.h (cl_error_floating_point_nan,
cl_error_floating_point_overflow, cl_error_floating_point_underflow):
Removed (see cln/float.h.)
* src/float/sfloat/cl_SF.h: Throw.
* src/float/sfloat/elem/cl_SF_div.cc: Throw.
* src/float/sfloat/elem/cl_SF_from_RA.cc: Throw.
* src/float/sfloat/elem/cl_SF_scale.cc: Throw.
* src/float/sfloat/elem/cl_SF_scale_I.cc: Throw.
* src/float/sfloat/misc/cl_SF_as.cc: Throw.
* src/float/ffloat/cl_FF.h: Throw.
* src/float/ffloat/conv/cl_FF_from_float.cc: Throw.
* src/float/ffloat/elem/cl_FF_div.cc: Throw.
* src/float/ffloat/elem/cl_FF_from_RA.cc: Throw.
* src/float/ffloat/elem/cl_FF_scale.cc: Throw.
* src/float/ffloat/elem/cl_FF_scale_I.cc: Throw.
* src/float/ffloat/misc/cl_FF_as.cc: Throw.
* src/float/dfloat/cl_DF.h: Throw.
* src/float/dfloat/conv/cl_DF_from_double.cc: Throw.
* src/float/dfloat/elem/cl_DF_div.cc: Throw.
* src/float/dfloat/elem/cl_DF_from_RA.cc: Throw.
* src/float/dfloat/elem/cl_DF_scale.cc: Throw.
* src/float/dfloat/elem/cl_DF_scale_I.cc: Throw.
* src/float/dfloat/misc/cl_DF_as.cc: Throw.
* src/float/lfloat/algebraic/cl_LF_sqrt.cc: Throw.
* src/float/lfloat/elem/cl_LF_1plus.cc: Throw.
* src/float/lfloat/elem/cl_LF_I_div.cc: Throw.
* src/float/lfloat/elem/cl_LF_I_mul.cc: Throw.
* src/float/lfloat/elem/cl_LF_div.cc: Throw.
* src/float/lfloat/elem/cl_LF_from_I.cc: Throw.
* src/float/lfloat/elem/cl_LF_mul.cc: Throw.
* src/float/lfloat/elem/cl_LF_scale.cc: Throw.
* src/float/lfloat/elem/cl_LF_scale_I.cc: Throw.
* src/float/lfloat/elem/cl_LF_square.cc: Throw.
* src/float/lfloat/misc/cl_LF_as.cc: Throw.
* src/float/lfloat/misc/cl_LF_shorten.cc: Throw.
* src/float/lfloat/misc/cl_LF_shortenrel.cc: Throw.
* src/float/lfloat/misc/cl_LF_shortenwith.cc: Throw.
* src/float/input/cl_F_read.cc: Throw.
* src/float/input/cl_F_read_stream.cc: Throw.
* src/float/misc/cl_F_as.cc: Throw.
* src/float/misc/cl_F_shortenrel.cc: Throw.
* src/float/transcendental/cl_LF_coshsinh_aux.cc: Throw.
* src/float/transcendental/cl_LF_cossin_aux.cc: Throw.
* src/float/transcendental/cl_LF_exp_aux.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_a.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_ab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_b.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_p.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pb.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pq.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pqa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pqab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_pqb.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_q.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_qa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_qab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_qb.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pq.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pqa.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pqab.cc: Throw.
* src/float/transcendental/cl_LF_ratseries_stream_pqb.cc: Throw.
* src/float/transcendental/cl_LF_ratsumseries_pqcd_aux.cc: Throw.
* src/float/transcendental/cl_LF_ratsumseries_pqd.cc: Throw.
* src/float/transcendental/cl_LF_ratsumseries_pqd_aux.cc: Throw.
* src/float/transcendental/cl_LF_zeta_int.cc: Throw.
* src/real/elem/cl_R_div.cc: Throw.
* src/real/format-output/cl_fmt_cardinal.cc: Throw.
* src/real/format-output/cl_fmt_newroman.cc: Throw.
* src/real/format-output/cl_fmt_oldroman.cc: Throw.
* src/real/input/cl_R_read.cc: Throw.
* src/real/input/cl_R_read_stream.cc: Throw.
* src/real/misc/cl_R_as.cc: Throw.
* src/real/random/cl_R_random.cc: Throw.
* src/real/transcendental/cl_R_atan2.cc: Throw.
* src/real/transcendental/cl_R_log.cc: Throw.
* src/complex/input/cl_N_read.cc: Throw.
* src/complex/input/cl_N_read_stream.cc: Throw.
* src/complex/misc/cl_N_as.cc: Throw.
* src/complex/transcendental/cl_C_atanh_aux.cc: Throw.
* src/complex/transcendental/cl_C_expt_C.cc: Throw.
* src/complex/transcendental/cl_C_log.cc: Throw.
* src/complex/transcendental/cl_C_log2.cc: Throw.
* src/numtheory/cl_nt_cornacchia1.cc: Throw.
* src/numtheory/cl_nt_cornacchia4.cc: Throw.
* src/numtheory/cl_nt_isprobprime.cc: Throw.
* src/numtheory/cl_nt_jacobi.cc: Throw.
* src/numtheory/cl_nt_jacobi_low.cc: Throw.
* src/numtheory/cl_nt_sqrtmodp.cc: Throw.
* src/modinteger/cl_MI.cc: Throw.
* src/modinteger/cl_MI_int.h: Throw.
* src/modinteger/cl_MI_montgom.h: Throw.
* src/modinteger/cl_MI_pow2.h: Throw.
* src/modinteger/cl_MI_rshift.cc: Throw.
* src/modinteger/cl_MI_std.h: Throw.
* src/polynomial/elem/cl_UP_GF2.h: Throw.
* src/polynomial/elem/cl_UP_MI.h: Throw.
* src/polynomial/elem/cl_UP_gen.h: Throw.
* src/polynomial/elem/cl_UP_named.cc: Throw.
* src/polynomial/elem/cl_UP_no_ring.cc (uninitialized_error,
uninitialized_ring): Removed (see cln/ring.h.)
* src/polynomial/elem/cl_UP_number.h: Throw.
* src/polynomial/elem/cl_UP_unnamed.cc: Throw.
* src/vector/cl_GV_I.cc: Throw.
* src/vector/cl_GV_number.cc: Throw.
* tests/timediv2adic-compare.cc: Use default abort(), not cl_abort().
* tests/timeprint-compare.cc: Likewise.
* tests/timerecip2adic-compare.cc: Likewise.
* doc/cln.tex: Document the exception classes.
* examples/contfrac.cc: Use try/catch instead of setjmp/longjmp.
* INSTALL: undocument -fno-exceptions.
* README: Add exceptions to list of used C++ features.
18 years ago |
|
2007-mm-dd, version 1.2.0 =========================
Implementation changes ----------------------
* Added support for huge numbers... * CLN now uses C++ exceptions for error handling. * Removed cl_boolean. Use built-in C++ bool instead. * Dropped the cln-config script. Please use pkg-config instead.
Algorithmic changes -------------------
* Save a lot of memory during computation of some constants.
2006-08-08, version 1.1.13 ==========================
* Compilation fixes for 64-bit brokenness introduced in last release.
2006-08-06, version 1.1.12 ==========================
Implementation changes ----------------------
* Fix rare assertion when printing quite large floats.
Other changes -------------
* Compilation fixes for several platforms: *BSD, Intel Mac, and MinGW.
2005-11-23, version 1.1.11 ==========================
Algorithmic changes -------------------
* Considerably improved performance of number input.
2005-10-22, version 1.1.10 ==========================
Implementation changes ----------------------
* Removed the vptr of modular integer and univariate polynomial classes in order to fix some crashes in that sector of CLN. Code using this needs to be recompiled.
* Many more operator signatures make the integration of CLN types with float/double easier.
Other changes -------------
* Several compilation fixes.
* Made it possible to cross-compile CLN.
2004-11-03, version 1.1.9 =========================
Algorithmic changes -------------------
* Input of numbers in bases 2, 4, 8, 16 and 32 is now done in linear bit complexity as opposed to O(N^2). Useful for all kinds of persistency.
Implementation changes ----------------------
* Fixed several bugs in the integer input and output routines that could be blamed for random crashes in the following cases: output in base 32 for quite large numbers, input in base 2 for fixnums and input in base 3 for fixnums on a 64 bit target.
* Fixed crash when radix specifiers were used in input streams.
* Speed up on x86_64 and ia64 by adding some inline assembly.
Other changes -------------
* Fixes for compilation on MacOS X and little endian Mips.
2004-07-01, version 1.1.8 =========================
Implementation changes ----------------------
* Fix bug in log(a,b) when b is 1/n.
* Fix crash in shared library on AMD64.
Other changes -------------
* Fixes for some language conformance issues.
2004-05-02, version 1.1.7 =========================
Implementation changes ----------------------
* Fixed two corner case bugs in cl_LF multiplication and sqrt.
* Workaround GCC 3.[123] compiler bug.
* Parallel build should work reliably now.
2004-01-01, version 1.1.6 =========================
Functional changes ------------------
* New function `sintL ldegree(const cl_UP& x)'. (Suggested by Munagala Ramanath.)
Implementation changes ----------------------
* Fixed a bug in polynomial subtraction. (Reported by Munagala Ramanath.)
Other changes -------------
* Provide a package control file cln.pc.
* Updated infrastructure to autoconf-2.57.
* Fixed compilation issues with GCC-3.4 prereleases and on Mac OSX.
2002-05-28, version 1.1.5 =========================
Other changes -------------
* Fix compilation issues with GCC-3.1.
2002-01-04, version 1.1.4 =========================
Other changes -------------
* Fix compilation issues with GMP-4.0 and on IBM s390.
* Updated infrastructure to autoconf-2.52.
2001-11-05, version 1.1.3 =========================
Implementation changes ----------------------
* Fix a computation error of sin and sinh for small arguments. (Reported by Christopher Kennedy.)
* Module ordering works with gcc-3.0 -fuse-cxa-atexit now.
* -DNO_ASM works properly on Sparc.
2001-07-25, version 1.1.2
Implementation changes ----------------------
* Minor cleanups and portability issues. (No need to upgrade if you have been happy so far.)
2001-05-31, version 1.1.1 =========================
Implementation changes ----------------------
* Minor cleanups for GCC 3.0 and libstdc++-v3.
* Fixes several little bugs and portability issues.
2000-12-14, version 1.1.0 =========================
Functional changes ------------------
* ISO/IEC 14882 fashion adjustments: Put everything into namespace cln. All fundamental data types still carry their old names. Other non-macro identifiers are now written as cln::foo instead of cl_foo, except where the cl_ comes from a data type (as in cl_I_to_int()). Headers are installed into a separate directory, #include <cln/foo.h> instead of <cl_foo.h>. Applications must be manually ported to the new style. We apologize for the inconvenience.
Implementation changes ----------------------
* Removed internal copy of mpn subdirectory tree from libgmp-2.0.2. Configuring with --with-gmp now relies on an installed libgmp library version 3 or above. We recommend libgmp-3.1 or newer.
* Adjusted several break-even points to make better use of a faster libgmp and better match present-day CPUs.
* Fix several errors for architectures with 64-bit wide words. (Others than Alpha, which worked already.)
* Fix compilation errors with current GCC-3.0 snapshots.
Other changes -------------
* Added package tools: script cln-config and autoconf macro AC_PATH_CLN (in file cln.m4).
2000-01-13, version 1.0.3 =========================
Functional changes ------------------
* New function `cl_I doublefactorial (uintL n)'.
Implementation changes ----------------------
* Fix several little configuration errors.
* Fix some compilation errors with gcc-2.96 prereleases.
1999-09-07, version 1.0.2 =========================
Functional changes ------------------
* New functions `cl_I numerator (const cl_RA&)' `cl_I denominator (const cl_RA&)'. Suggested by Richard Kreckel and Sylvain Pion.
* New function `cl_equal_hashcode' for the classes cl_N, cl_R, cl_RA, cl_I, cl_F, cl_SF, cl_FF, cl_DF, cl_LF. Suggested by Richard Kreckel.
Implementation changes ----------------------
* Fix an endless loop when either of the functions `cl_boolean rootp (const cl_RA&, uintL, cl_RA*)', `cl_boolean rootp (const cl_RA&, const cl_I&, cl_RA*)' was called with an integer argument. Thanks to Richard Kreckel.
* Fix a bug in the addition and subtraction of rational numbers which could cause unnormalized rational numbers like 3/1 to be created.
1999-06-09, version 1.0.1 =========================
Algorithmic changes -------------------
* Speed up the functions `logand', `lognand', `logandc2'.
Implementation changes ----------------------
* Fix compilation errors with gcc-2.7.2, egcs-1.1.2 and gcc-2.95.
* Fix compilation errors on HPPA, MIPS, some versions of DEC Alpha, OpenBSD, and SPARC with LiDIA.
* Fix compilation errors on Win32. Thanks to Mumit Khan.
1999-01-12, version 1.0 =======================
Functional changes ------------------
* New include files, containing I/O functions: <cl_integer_io.h> <cl_rational_io.h> <cl_float_io.h> <cl_sfloat_io.h> <cl_ffloat_io.h> <cl_dfloat_io.h> <cl_lfloat_io.h> <cl_real_io.h> <cl_complex_io.h> The file <cl_io.h> now contains only I/O functions for characters and C integers.
* To access the base ring of a univariate polynomial ring, now use `R->basering()' instead of `R->basering'.
* Implement `plusp', `max', `min' for the classes cl_F, cl_SF, cl_FF, cl_DF, cl_LF, cl_RA, cl_I.
* Implement `abs' for the class cl_RA.
* Replaced `read_number' with specialized functions `read_complex', `read_real', `read_float', `read_rational', `read_integer'.
* Replaced the functions `void fprint (cl_ostream stream, int x)' `void fprint (cl_ostream stream, unsigned int x)' `void fprint (cl_ostream stream, long x)' `void fprint (cl_ostream stream, unsigned long x)' with `void fprintdecimal (cl_ostream stream, int x)' `void fprintdecimal (cl_ostream stream, unsigned int x)' `void fprintdecimal (cl_ostream stream, long x)' `void fprintdecimal (cl_ostream stream, unsigned long x)'
Algorithmic changes -------------------
* The function `cl_I xgcd (const cl_I& a, const cl_I& b, cl_I* u, cl_I* v)' now normalizes the resulting u and v to be of minimum absolute value. (Suggested by the LiDIA group.)
* The conversion from string to cl_F, cl_R, cl_N now chooses the format of the resulting float depending on the number of significant digits present in the input string.
* Speed up the functions `cl_R operator* (const cl_RA&, const cl_LF&)' `cl_R operator* (const cl_LF&, const cl_RA&)' `cl_R operator/ (const cl_RA&, const cl_LF&)' `cl_LF operator/ (const cl_LF&, const cl_RA&)'
Implementation changes ----------------------
* Fix for `cl_I ash (const cl_I& x, const cl_I& n)' when |n| is between 2^29 and 2^37. (Reported by Thomas Papanikolaou.)
* Fixed a memory leak in the long-float truncate function. (Reported by Keith Briggs.)
* Fixed a memory leak in the modular integer exponentiation.
* Reduced the stack space consumption. The default stack size (typically 8 MB on Unix) should now be sufficient in order to run all CLN programs.
* Portability fixes for m68k platforms. (Reported and fixed by Roman Hodek.)
Other changes -------------
* Restructured the sources. The subpackages - base - base + integer - base + integer + rational - base + integer + rational + float - base + integer + rational + float + real - base + integer + rational + float + real + complex - base + integer + modinteger are now self-contained.
* The configuration script can be called with option `--enable-shared', to build CLN as a shared library.
* Updated the LiDIA interface.
1998-05-07, version 0.98 ========================
Implementation changes ----------------------
* Portability fixes for 64-bit platforms like DEC Alpha. (Reported by John Cremona and Thomas Papanikolaou.)
1998-02-27 ==========
Other changes -------------
* Portability fixes for new ISO/ANSI C++ compilers.
* Updated the LiDIA interface for LiDIA version 1.3 and fixed a couple of bugs.
1997-09-06 ==========
Implementation changes ----------------------
* Portability fix for i686 platforms. (Reported by Michael Pfeifer.)
1997-09-01 ==========
Functional changes ------------------
* New include files: <cl_ring.h>, declaring general rings, <cl_GV.h>, <cl_SV.h>, defining vectors, <cl_univpoly.h>, defining univariate polynomial rings.
Algorithmic changes -------------------
* Speed up the internal computation of ln(2) and ln(10) by about 20%.
* Speed up the computation of exp (for 1000 digits or more) by about 10%.
Implementation changes ----------------------
* Portability fix for 64-bit platforms like DEC Alpha: Fixed a bug: endless loop in `sqrt' for large precision. (Reported by Blake Jones.)
* Portability fix for RS/6000 platforms.
1997-02-21 ==========
Algorithmic changes -------------------
* Speed up the computation of the elementary transcendental functions: exp, sinh, cosh, asinh, atanh (for 100 digits) by about 30%, log (for 100 digits) by about 25%, sin, cos (for 1000 or 10000 digits) by about 20%, asin, acos, atan (for 1000 digits) by about 25%.
Implementation changes ----------------------
* Portability fix for SunOS 4 and other BSD platforms.
1997-01-31 ==========
Algorithmic changes -------------------
* Fixed a bug: endless recursion in `cl_boolean sqrtp (const cl_RA&, cl_RA*)'.
* Fixed a bug: Only the first 85% of the digits returned by `cl_eulerconst' for moderate precision (< 11370 digits) were correct. (Reported by Thomas Papanikolaou.)
Implementation changes ----------------------
* Fix static initialization order bug. Requires g++ 2.7.0 or newer (g++ 2.8.0 or newer on HPPA).
* New method `debug_print()', for pretty printing of CLN objects, intended to be called from the debugger.
1997-01-07 ==========
Functional changes ------------------
* New functions `float cl_float_approx (const cl_R&)', `double cl_double_approx (const cl_R&)' for converting a real number to a C `float' or `double'.
Algorithmic changes -------------------
* Speed up `cl_zeta' using Cohen-Villegas-Zagier convergence acceleration.
Implementation changes ----------------------
* New function `cl_print', for pretty printing of CLN objects, intended to be called from the debugger.
* Portability fixes for 64-bit platforms like DEC Alpha.
1996-11-29 ==========
Functional changes ------------------
* New include files: <cl_string.h>, defining strings, <cl_symbol.h>, defining symbols, <cl_proplist.h>, defining property lists, <cl_condition.h>, defining conditions/exceptions.
* New functions `cl_F cl_catalanconst ()', `cl_F cl_catalanconst (const cl_F&)', `cl_F cl_catalanconst (cl_float_format_t)' which return Catalan's constant. (Suggested by Thomas Papanikolaou.)
* New functions `cl_F cl_zeta (int s)', `cl_F cl_zeta (int s, const cl_F&)', `cl_F cl_zeta (int s, cl_float_format_t)' which return the Riemann zeta function at an integral point s>1.
* New functions `cl_F cl_exp1 ()', `cl_F cl_exp1 (const cl_F&)', `cl_F cl_exp1 (cl_float_format_t)' which return e = exp(1).
* New function `cl_I binomial (uintL n, uintL k)' which returns the binomial coefficient (n choose k).
* New functions `int cl_I_to_int (const cl_I&)', `unsigned int cl_I_to_uint (const cl_I&)', `long cl_I_to_long (const cl_I&)', `unsigned long cl_I_to_ulong (const cl_I&)' for converting an integer to a C `int' or `long'.
* New functions `float cl_float_approx (const cl_I&)', `float cl_float_approx (const cl_RA&)', `double cl_double_approx (const cl_I&)', `double cl_double_approx (const cl_RA&)' for converting a rational number to a C `float' or `double'.
Implementation changes ----------------------
* Moved the sources to subdirectories. (Suggested by J�rg Arndt.)
Other changes -------------
* New benchmark for better comparing LiDIA, Pari and CLN.
* Added an interface to LiDIA, allows using CLN as a replacement of libI. (Suggested by Thomas Papanikolaou.)
* Added an ILOG Talk interface, for interactive use of the library.
1996-10-13 ==========
Functional changes ------------------
* New include file <cl_modinteger.h>, defining modular integer rings.
* New functions `cl_F cl_eulerconst ()', `cl_F cl_eulerconst (const cl_F&)', `cl_F cl_eulerconst (cl_float_format_t)' which return Euler's constant.
Algorithmic changes -------------------
* Speed up square root of large numbers by use of Newton's algorithm.
* Speed up multiplication and division of large long-floats by small integers.
* Speed up the computation of pi, e, exp, log, sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, asinh, acosh, atanh. All of them are now computed with asymptotically fast algorithms, of bit complexity O(log(N)^2*M(N)) = O(N^(1+epsilon)) for N digits.
* Fixed several bugs in the transcendental functions routines. In particular, the `log' function went into an endless loop.
* Fixed a bug: The cl_I -> cl_DF and cl_I -> cl_LF conversions didn't work correctly for negative integers.
1996-09-08 ==========
Functional changes ------------------
* New include file <cl_numtheory.h>, containing number theoretic functions, for now only the Jacobi symbol.
Algorithmic changes -------------------
* Speed up squaring of large numbers by 30%.
* Speed up division of large numbers by use of Newton's algorithm. The improvement is noticeable for numbers with at least about 1000 words = 32000 bits = 10000 decimal digits.
* Speed up the binary-to-decimal conversion of large numbers by use of a divide-and-conquer method. The improvement is noticeable for numbers of at least 1250 words = 40000 bits = 12000 decimal digits.
* Fixed a bug: The functions `cl_boolean minusp (const type&)' and `cl_boolean zerop (const type&)' were missing for type=cl_I and type=cl_RA.
* Fixed a bug: The function `cl_boolean logtest (const cl_I&, const cl_I&)' didn't work correctly if both arguments were bignums.
* Fixed a bug: The function `cl_I mod (const cl_I&, const cl_I&)', when called as `mod(-n*m,m)' (n>0), returned m instead of 0.
* Fixed a bug: The function `uintL power2p (const cl_I&)' returned wrong values for arguments x = 2^n, n >= 29.
Implementation changes ----------------------
* Speed up CLN by using the low-level addition/subtraction, shift and multiplication loops from GNU gmp-2.0.2.
* Fixed a severe reference counting bug in the constructors `type::type (const long)' and `type::type (const unsigned long)' for type=cl_number, type=cl_N, type=cl_RA, type=cl_I that most often caused a core dump.
* CLN's word sequences can be chosen to be stored big-endian in memory (like it was up to now) or little-endian (needed for interfacing to GMP).
1996-05-20 ==========
Functional changes ------------------
* New include file <cl_timing.h>, contains timing facilities.
Algorithmic changes -------------------
* Speed up the multiplication of large numbers by use of an FFT based algorithm (Sch�nhage-Strassen). The improvement is noticeable when both factors have at least 1250 words = 40000 bits = 12000 decimal digits.
* Speed up the functions `cl_I gcd (const cl_I&, const cl_I&)' and `cl_I xgcd (const cl_I&, const cl_I&, cl_I*, cl_I*)' by a factor of 1.5. Simple trick.
* Speed up the function `cl_boolean sqrtp (const cl_I&, cl_I*)' using a trick from Henri Cohen.
* Fixed an endless loop in the function `uint32 gcd (uint32, uint32)' which occurred when one of the arguments is zero.
* Fixed an endless loop in the function `cl_I factorial (uintL)'.
Implementation changes ----------------------
* <cl_io.h> now uses iostreams by default instead of stdio FILE pointers. (Reported by Tito Flagella.)
* Fixed linking error when compiling without -O. (Reported by Tito Flagella.)
* Fixed syntax error in <cl_input.h>. (Reported by Tito Flagella.)
* Fixed syntax errors in src/cl_DS.h and src/cl_FF_plus.h. (Reported by Marcus Daniels.)
* More portability fixes.
* Configuration now supports the --srcdir option. (Reported by Marcus Daniels.)
1996-01-03 ==========
* Compiles well on Sparc, using gcc.
* Mail to beta testers.
1995-12-06 ==========
* Compiles well on Linux, using gcc.
|