mirror of
https://github.com/vale981/arb
synced 2025-03-04 17:01:40 -05:00
remove an unused variable and rename an internal function to avoid namespace conflict with flint
This commit is contained in:
parent
009a0eb918
commit
e310ff122a
2 changed files with 3 additions and 4 deletions
|
@ -30,7 +30,7 @@
|
|||
#define NUMBER_OF_SMALL_PARTITIONS 128
|
||||
extern const unsigned int partitions_lookup[NUMBER_OF_SMALL_PARTITIONS];
|
||||
|
||||
long partitions_needed_terms(double n);
|
||||
long partitions_hrr_needed_terms(double n);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -104,7 +104,7 @@ partitions_fmpz_fmpz(fmpz_t p, const fmpz_t n, int use_doubles)
|
|||
fmprb_init(x);
|
||||
fmpr_init(bound);
|
||||
|
||||
N = partitions_needed_terms(fmpz_get_d(n));
|
||||
N = partitions_hrr_needed_terms(fmpz_get_d(n));
|
||||
|
||||
if (fmpz_cmp_ui(n, 4e8) >= 0 && flint_get_num_threads() > 1)
|
||||
{
|
||||
|
|
|
@ -70,7 +70,7 @@ partitions_remainder_bound_log2(double n, double N)
|
|||
}
|
||||
|
||||
long
|
||||
partitions_needed_terms(double n)
|
||||
partitions_hrr_needed_terms(double n)
|
||||
{
|
||||
long N;
|
||||
for (N = 1; partitions_remainder_bound_log2(n, N) > 10; N++);
|
||||
|
@ -238,7 +238,6 @@ partitions_hrr_sum_fmprb(fmprb_t x, const fmpz_t n, long N0, long N, int use_dou
|
|||
{
|
||||
trig_prod_t prod;
|
||||
fmprb_t acc, C, t1, t2, t3, t4, exp1;
|
||||
fmpr_t bound;
|
||||
fmpz_t n24;
|
||||
long k, prec, res_prec, acc_prec, guard_bits;
|
||||
double nd, Cd;
|
||||
|
|
Loading…
Add table
Reference in a new issue