1
0
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:
Tanguy Pruvot 2014-11-09 13:23:31 +01:00
parent a747e4ca0f
commit 149143d5cd
2 changed files with 3 additions and 3 deletions

View File

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

View File

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