mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2026-02-22 16:33:08 +00:00
v24.1
This commit is contained in:
8
miner.h
8
miner.h
@@ -185,13 +185,13 @@ static inline bool is_windows(void)
|
||||
*/
|
||||
#endif
|
||||
|
||||
static inline uint32_t swab32(uint32_t v)
|
||||
static inline uint32_t swab32(uint32_t x)
|
||||
{
|
||||
#ifdef WANT_BUILTIN_BSWAP
|
||||
return __builtin_bswap32(v);
|
||||
return __builtin_bswap32(x);
|
||||
#else
|
||||
return ( (x << 24) & 0xff000000u ) | ( (x << 8) & 0x00ff0000u )
|
||||
| ( (x >> 8) & 0x0000ff00u ) | ( (x >> 24) & 0x000000ffu )
|
||||
return ( ( (x) << 24 ) & 0xff000000u ) | ( ( (x) << 8 ) & 0x00ff0000u )
|
||||
| ( ( (x) >> 8 ) & 0x0000ff00u ) | ( ( (x) >> 24 ) & 0x000000ffu )
|
||||
|
||||
|
||||
// return bswap_32(v);
|
||||
|
||||
Reference in New Issue
Block a user