Root/cgminer/patches/0001-add-MIPSED-to-icarus-for-BIG_ENDIAN.patch.patch

Source at commit 9feb48247d2fb45cacaaec5ac6fad506ad9a5191 created 8 years 5 months ago.
By Xiangfu Liu, cgminer: most patches merged to upstream
1From 5d3d883703d8098537c248c797009247f51b116b Mon Sep 17 00:00:00 2001
2From: Xiangfu <xiangfu@openmobilefree.net>
3Date: Sun, 19 Feb 2012 22:20:22 +0800
4Subject: [PATCH] add-MIPSED-to-icarus-for-BIG_ENDIAN.patch
5
6---
7 icarus.c | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
9
10diff --git a/icarus.c b/icarus.c
11index 1d59657..26f4927 100644
12--- a/icarus.c
13+++ b/icarus.c
14@@ -287,7 +287,7 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
15         if (nonce == 0 && ret)
16                 return 0xffffffff;
17 
18-#ifndef __BIG_ENDIAN__
19+#if !defined (__BIG_ENDIAN__) && !defined(MIPSEB)
20     nonce = swab32(nonce);
21 #endif
22     work->blk.nonce = 0xffffffff;
23--
241.7.5.4
25
26

Archive Download this file



interactive