1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

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

This commit is contained in:
Con Kolivas 2011-09-07 09:02:28 +10:00
parent ffa68cdaab
commit 4d13f8ad3c

View File

@ -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)))