Commit 4d13f8ad3ca4c21a3b3be797f1a087899776e7a5

Con Kolivas 2011-09-07T09:02:28

ByteReverse is not used and the bswap opcode breaks big endian builds. Remove it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/findnonce.c b/findnonce.c
index 45b5910..649d622 100644
--- a/findnonce.c
+++ b/findnonce.c
@@ -39,12 +39,6 @@ const uint32_t SHA256_K[64] = {
 	0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
 };
 
-inline uint32_t ByteReverse(uint32_t value)
-{
-	__asm__ ("bswap %0" : "=r" (value) : "0" (value));
-	return value;
-}
-
 #define rotate(x,y) ((x<<y) | (x>>(sizeof(x)*8-y)))
 #define rotr(x,y) ((x>>y) | (x<<(sizeof(x)*8-y)))