1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 18:18:26 +02:00
openwrt-packages/cgminer/patches/0001-add-MIPSED-to-icarus-for-BIG_ENDIAN.patch.patch
2012-05-04 09:14:59 +08:00

14 lines
357 B
Diff

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