Browse Source

Merge commit 'a8ccd24' into cg_merges_20121125

Conflicts:
	miner.h
Luke Dashjr 13 years ago
parent
commit
f545e78680
1 changed files with 5 additions and 1 deletions
  1. 5 1
      util.c

+ 5 - 1
util.c

@@ -584,9 +584,13 @@ bool fulltest(const unsigned char *hash, const unsigned char *target)
 	swap256(target_swap, target);
 	swap256(target_swap, target);
 
 
 	for (i = 0; i < 32/4; i++) {
 	for (i = 0; i < 32/4; i++) {
+#ifdef MIPSEB
+		uint32_t h32tmp = hash32[i];
+		uint32_t t32tmp = swab32(target32[i]);
+#else
 		uint32_t h32tmp = swab32(hash32[i]);
 		uint32_t h32tmp = swab32(hash32[i]);
 		uint32_t t32tmp = target32[i];
 		uint32_t t32tmp = target32[i];
-
+#endif
 		target32[i] = swab32(target32[i]);	/* for printing */
 		target32[i] = swab32(target32[i]);	/* for printing */
 
 
 		if (h32tmp > t32tmp) {
 		if (h32tmp > t32tmp) {