Skip to content

Commit 5979c54

Browse files
committed
Replaced old header
1 parent 79bc9f8 commit 5979c54

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

src/DivisorsContainer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#include <Rcpp.h>
22
#include <cmath>
33
#include <libdivide.h>
4-
#include <PollardRho.h>
5-
6-
const double Significand53 = 9007199254740991.0;
4+
#include <GetFacsUtils.h>
75

86
template <typename typeInt>
97
inline typeInt getStartingIndex (typeInt lowerB, typeInt step) {

src/PollardRho.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#include <Rcpp.h>
22
#include <cmath>
33
#include <algorithm>
4-
#include "PrimesPolRho.h"
5-
#include "PollardRho.h"
6-
7-
const double Significand53 = 9007199254740991.0;
4+
#include <PrimesPolRho.h>
5+
#include <GetFacsUtils.h>
86

97
/* Prove primality or run probabilistic tests. */
108
int FlagProvePrimality = 1;

src/PrimesContainer.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#include <cmath>
33
#include <array>
44
#include <libdivide.h>
5-
#include "PrimesSegSieve.h"
6-
#include "PhiTinyLookup.h"
5+
#include <PrimesSegSieve.h>
6+
#include <PhiTinyLookup.h>
7+
#include <GetFacsUtils.h>
78

89
// "AllPrimesCpp" implements a simple segmented version of the
910
// Sieve of Eratosthenes (original implementation authored by
@@ -17,8 +18,6 @@
1718
// Kim Walisch's official github repo for "pi_legendre" is:
1819
// https://github.com/kimwalisch/primecount
1920

20-
const double Significand53 = 9007199254740991.0;
21-
2221
// This is the largest multiple of 2*3*5*7 = 210
2322
// that is less than 2^15 = 32768 = 32KB. This
2423
// is the typical size of most CPU's L1 cache

0 commit comments

Comments
 (0)