1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-26 11:13:43 +02:00
openwrt-packages/cgminer/patches/0001-add-MIPSED-to-icarus-for-BIG_ENDIAN.patch.patch

14 lines
357 B
Diff
Raw Normal View History

2012-05-04 04:14:59 +03:00
diff --git a/driver-icarus.c b/driver-icarus.c
index b0c3b4f..b2c8503 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -356,7 +356,7 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
return ESTIMATE_HASHES;
}
-#ifndef __BIG_ENDIAN__
+#if !defined (__BIG_ENDIAN__) && !defined(MIPSEB)
nonce = swab32(nonce);
#endif
2012-05-04 04:14:59 +03:00