also use tls for bernoulli numbers

This commit is contained in:
Fredrik Johansson 2013-01-13 22:49:33 +01:00
parent 71479a603d
commit cd02409a6f
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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)