mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-08 22:07:56 +00:00
Fix left value warning in SWAPDWORDS + groestl change
This commit is contained in:
parent
a747e4ca0f
commit
149143d5cd
@ -343,7 +343,7 @@ uint64_t ROTL64(const uint64_t x, const int offset)
|
||||
#endif
|
||||
|
||||
__device__ __forceinline__
|
||||
uint64_t SWAPDWORDS(const uint64_t value)
|
||||
uint64_t SWAPDWORDS(uint64_t value)
|
||||
{
|
||||
#if __CUDA_ARCH__ >= 320
|
||||
uint2 temp;
|
||||
|
@ -32,8 +32,8 @@ void G256_AddRoundConstantQ_quad(uint32_t &x7, uint32_t &x6, uint32_t &x5, uint3
|
||||
|
||||
int andmask = 0xFFFF0000;
|
||||
#else
|
||||
/* from sp: weird but faster */
|
||||
int andmask = ((~((threadIdx.x & 0x03) - 3)) & 0xFFFF0000);
|
||||
/* from sp: faster (branching problem with if ?) */
|
||||
uint32_t andmask = -((threadIdx.x & 3) == 3) & 0xFFFF0000U;
|
||||
#endif
|
||||
|
||||
x0 ^= ((- (rnd & 0x01) ) & andmask);
|
||||
|
Loading…
Reference in New Issue
Block a user