aboutsummaryrefslogtreecommitdiff
path: root/aberth/polygen.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-07-16 21:57:21 +0200
committertomsmeding <tom.smeding@gmail.com>2019-07-16 21:57:29 +0200
commit3b1767a3f4fd2f0ff2b03d7daa9307fce115b5ea (patch)
tree6aeff844fb24693880ee9ae3b48cd9d3d7b9b6f1 /aberth/polygen.h
parent5e23e6b4986bb31e15e37309ee6b55224a4a630a (diff)
Add support for Christensen in CPU aberth
Diffstat (limited to 'aberth/polygen.h')
-rw-r--r--aberth/polygen.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/aberth/polygen.h b/aberth/polygen.h
index 1381444..b0022f1 100644
--- a/aberth/polygen.h
+++ b/aberth/polygen.h
@@ -18,8 +18,21 @@ namespace PolyGen {
Poly atIndex(int index);
- vector<Job> genJobs(int targetJobs);
+ int numPolys();
+ }
+
+ namespace Christensen {
+ constexpr int kCoeffBound = 4;
+
+ // Returns whether we just looped around
+ bool next(Poly &poly);
+
+ Poly atIndex(int index);
+
+ int numPolys();
}
using namespace Derbyshire;
+
+ vector<Job> genJobs(int targetJobs);
}