mirror of
https://github.com/vale981/arb
synced 2025-03-05 09:21:38 -05:00
also use tls for bernoulli numbers
This commit is contained in:
parent
71479a603d
commit
cd02409a6f
2 changed files with 4 additions and 4 deletions
|
@ -34,9 +34,9 @@
|
|||
#include "arith.h"
|
||||
#include "fmprb.h"
|
||||
|
||||
extern long bernoulli_cache_num;
|
||||
extern long __thread bernoulli_cache_num;
|
||||
|
||||
extern fmpq * bernoulli_cache;
|
||||
extern __thread fmpq * bernoulli_cache;
|
||||
|
||||
void bernoulli_cache_compute(long n);
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
#include "bernoulli.h"
|
||||
|
||||
long bernoulli_cache_num = 0;
|
||||
__thread long bernoulli_cache_num = 0;
|
||||
|
||||
fmpq * bernoulli_cache = NULL;
|
||||
__thread fmpq * bernoulli_cache = NULL;
|
||||
|
||||
void
|
||||
bernoulli_cache_compute(long n)
|
||||
|
|
Loading…
Add table
Reference in a new issue