summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2020-04-07 15:15:36 +0200
committerjonsykkel <jonrevold@gmail.com>2020-04-07 15:15:36 +0200
commit6f8e8f5bf55f9e755b27e50c02107b86d3eb1f7f (patch)
tree7dea4fb3d2a444b4668415833e5c0af910c938d0
parent1bf2fcd400498bc6d477e6daca44ede6aa8e84b7 (diff)
downloadct_sequence-6f8e8f5bf55f9e755b27e50c02107b86d3eb1f7f.tar.gz
som
-rw-r--r--src/a3.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/a3.c b/src/a3.c
index 8645e97..0c36fdd 100644
--- a/src/a3.c
+++ b/src/a3.c
@@ -8,16 +8,17 @@ void a3_init(uint64_t n);
void a3_loop(uint64_t x0,uint64_t x1);
algo_t a3 = {
- .name = "a3 aka SDI0",
+ .name = "a3 codename \"substantial diameter increase\" aka SDI0 aka waste of tyme",
.nmax = 1ULL<<32,
.init = a3_init,
.loop = a3_loop,
};
-#define CROSSOVER 32768
-#define CROSSOVER_MASK 0xFFFFFFFFFFFF8000
#define M24_SIZE 3
-#define M24_RANGE (1<<24)
+#define M24_RANGE (1<<(M24_SIZE*8))
+
+#define CROSSOVER (1<<15)
+#define CROSSOVER_MASK (~(CROSSOVER-1))
static uint8_t *m24;
static uint32_t *m32;
@@ -56,6 +57,7 @@ void a3_loop(uint64_t x0,uint64_t x1){
static void inner(uint32_t x){
uint32_t r;
+ //if(t >= CROSSOVER){
if(t & CROSSOVER_MASK){
uint64_t i = t-m24_n;
r = m32[i];
@@ -74,6 +76,7 @@ static void inner(uint32_t x){
static void inner_bias(uint32_t x){
uint32_t r;
+ //if(t >= CROSSOVER){
if(t & CROSSOVER_MASK){
uint64_t i = t-m24_n;
r = m32[i];