Commit graph

84 commits

Author SHA1 Message Date
fredrik
56c6b4de2e mag_pow_fmpz: allow negative exponents 2021-11-25 13:55:44 +01:00
fredrik
caf9bb7825 mp_bitcnt_t -> flint_bitcnt_t 2020-06-22 23:48:09 +02:00
fredrik
242fa2e4c0 header file cleanup (de-inlining, etc) 2019-01-18 15:34:54 +01:00
fredrik
2488af9b1d remove some unused fmpr functions and drop test iterations 2018-12-13 16:49:21 +01:00
fredrik
a7d9c0b1c1 mpfr 4.0 deprecated mpfr_root 2018-02-11 00:41:38 +01:00
Fredrik Johansson
bd243ec590 arf_set_d, fmpr_set_d: fix handling of subnormals 2017-08-11 02:26:16 +02:00
Fredrik Johansson
e71718411e silence compiler warnings caused by flint_abort 2017-06-18 17:06:17 +02:00
Tommy Hofmann
6bf072eb59 Replace abort with flint_abort.
This will allow us to not loose the julia session on error.
See also https://github.com/wbhart/flint2/pull/243
2017-02-28 16:52:57 +01:00
Isuru Fernando
015eaf6b52 Fix errors 2016-10-12 00:20:00 +05:30
Fredrik Johansson
ecb70e7476 update copyright headers to switch from GPL to LGPL 2016-04-26 17:20:05 +02:00
Fredrik Johansson
b4ebc87a1d use arb_test_multiplier to control number of test iterations 2016-04-10 17:24:58 +02:00
Fredrik Johansson
80640c87e2 include flint/foo.h instead of foo.h 2016-03-03 15:42:23 +01:00
Fredrik Johansson
177eed622d tidy and document fmpz_extras.h 2016-02-24 18:18:30 +01:00
William Hart
b2fdb96ac1 Include stdint.h on MinGW64. 2015-11-10 14:37:05 +00:00
William Hart
81d2ec0c2c mpfr_set_si_2exp -> mpfr_set_sj_2exp. 2015-11-10 14:18:40 +00:00
William Hart
d8609e002f static long -> static slong in test/*.c. 2015-11-10 13:49:21 +00:00
William Hart
57c6b71044 static long -> static slong in *.c. 2015-11-10 13:47:58 +00:00
William Hart
34008143c1 long -> slong return values. 2015-11-10 13:41:43 +00:00
William Hart
55c2827539 printf -> flint_printf, sprintf -> flint_sprintf, fprintf -> flint_fprintf. 2015-11-06 16:17:27 +00:00
William Hart
0383e04c21 %lu -> %wu in *.c. 2015-11-06 15:56:28 +00:00
William Hart
72abf04641 %ld -> %wd in *.c. 2015-11-06 15:51:44 +00:00
William Hart
5513b601c8 (U)L -> (U)WORD. 2015-11-06 15:34:19 +00:00
William Hart
93d40a7a9b long -> slong in fmpr/ and fmpr/test/. 2015-11-05 18:03:08 +00:00
Fredrik Johansson
a4019154e7 replace makefiles with version based on the improved flint makefiles 2014-08-18 22:53:50 +02:00
Fredrik Johansson
f668bdd87a increase mpfr exponent limit when printing 2014-07-10 01:51:49 +02:00
Fredrik Johansson
f0b1c4842c port remaining zeta methods 2014-06-14 21:42:47 +02:00
Fredrik Johansson
7c6b3fb932 fix bug in mul_1x1 2014-04-18 16:25:35 +02:00
Fredrik Johansson
0244fe0e46 Fix evil bug in floating-point arithmetic and strengthen test code.
When rounding up, the error bound sometimes came out as 1/2 ulp instead of 1 ulp due to the mantissa rounding up to the next power of two, without a corresponding exponent correction. Fortunately, this should not affect ball arithmetic (which always rounds down).
2014-04-18 16:19:53 +02:00
Fredrik Johansson
ef5998f085 merge 2014-04-18 16:19:32 +02:00
Fredrik Johansson
5697316463 simplify interface 2014-04-18 16:17:42 +02:00
Fredrik Johansson
24c2f11721 some code reorganisation; optimise fmpr_mul_si/ui/fmpz 2014-04-18 16:17:22 +02:00
Fredrik Johansson
991814c481 add fmpr_abs_bound_lt_2exp_si; some more simplification 2013-09-19 11:50:01 +01:00
Fredrik Johansson
4247d0ec22 add fmpr_abs_bound_le/lt_2exp_fmpz 2013-09-18 16:28:13 +01:00
Fredrik Johansson
68326d1021 fixes to make repeated flint_cleanup() calls safe 2013-08-02 12:36:53 +02:00
Fredrik Johansson
4bd28225bc use flint_cleanup() everywhere 2013-07-30 13:53:10 +02:00
Fredrik Johansson
0eb428f9f0 use flint_cleanup (work in progress) 2013-07-30 12:37:26 +02:00
Fredrik Johansson
46b93fabd8 make fmpr_cmpabs_ui a proper function 2013-07-23 14:14:49 +02:00
Fredrik Johansson
d5b514e12c add fmpr_set_d 2013-06-10 12:07:00 +02:00
Fredrik Johansson
2227adea03 faster high-precision division 2013-06-09 22:46:44 +02:00
Fredrik Johansson
82fd23e0da add fmpr_divappr_abs_ubound; slightly speed up a few radius operations 2013-06-09 19:53:01 +02:00
Fredrik Johansson
5ceaf24774 add reciprocal square root functions (fmpr_rsqrt, fmprb_rsqrt, fmprb_rsqrt) 2013-06-09 16:20:44 +02:00
Fredrik Johansson
d87ecd201b use TLS_PREFIX 2013-05-28 17:45:52 +02:00
Fredrik Johansson
b2ce8e668a some more work on addition; use also for subtraction 2013-05-28 17:10:06 +02:00
Fredrik Johansson
bfd7b6c4e2 some code cleanup 2013-05-28 12:23:53 +02:00
Fredrik Johansson
b656aefd5f first version of rewritten fmpr_add (needs more cleanup, and code reuse in fmpr_sub etc) 2013-05-27 16:21:37 +02:00
Fredrik Johansson
06539da4e9 add helper functions for combined assignment and rounding of single or double limb mantissas 2013-05-27 15:24:03 +02:00
Fredrik Johansson
8a4943b533 add _fmpr_set_round_mpn, and simplify the implementation of fmpr_mul 2013-05-24 17:26:54 +02:00
Fredrik Johansson
8c20cc8eed fix fmpr_get_fmpz for tiny numbers and rounding to nearest 2013-03-26 17:40:25 +01:00
Fredrik Johansson
d617631775 avoid potential overflow issue in fmpr add/sub 2013-03-25 14:19:18 +01:00
Fredrik Johansson
35dfbda6b3 add fmpr_sum for accurate summation 2013-03-14 15:13:44 +01:00