Commit e279bc1fc5ead5f7badbb7e5d0031d9244498ce1

ckolivas 2013-09-29T02:20:38

Iterate over the bitfury offsets in order of decreasing likelihood.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitfury.c b/driver-bitfury.c
index 9708fe6..6bb4e8c 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -178,7 +178,7 @@ static uint32_t decnonce(uint32_t in)
 }
 
 #define BT_OFFSETS 3
-const uint32_t bf_offsets[] = {0, -0x400000, -0x800000};
+const uint32_t bf_offsets[] = {-0x800000, 0, -0x400000};
 
 static bool bitfury_checkresults(struct thr_info *thr, struct work *work, uint32_t nonce)
 {