mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-08 22:07:56 +00:00
scrypt: fix implicit function declaration
This commit is contained in:
parent
2c24bc93d4
commit
5d6a489b98
10
scrypt.c
10
scrypt.c
@ -506,7 +506,7 @@ static inline void scrypt_core(uint32_t *X, uint32_t *V)
|
|||||||
|
|
||||||
unsigned char *scrypt_buffer_alloc()
|
unsigned char *scrypt_buffer_alloc()
|
||||||
{
|
{
|
||||||
return malloc(SCRYPT_BUFFER_SIZE);
|
return (unsigned char *)malloc(SCRYPT_BUFFER_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void scrypt_1024_1_1_256(const uint32_t *input, uint32_t *output,
|
static void scrypt_1024_1_1_256(const uint32_t *input, uint32_t *output,
|
||||||
@ -719,22 +719,22 @@ int scanhash_scrypt(int thr_id, uint32_t *pdata,
|
|||||||
for (i = 0; i < throughput; i++)
|
for (i = 0; i < throughput; i++)
|
||||||
data[i * 20 + 19] = ++n;
|
data[i * 20 + 19] = ++n;
|
||||||
|
|
||||||
#if defined(HAVE_SHA256_4WAY)
|
#if HAVE_SHA256_4WAY
|
||||||
if (throughput == 4)
|
if (throughput == 4)
|
||||||
scrypt_1024_1_1_256_4way(data, hash, midstate, scratchbuf);
|
scrypt_1024_1_1_256_4way(data, hash, midstate, scratchbuf);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_SCRYPT_3WAY) && defined(HAVE_SHA256_4WAY)
|
#if HAVE_SCRYPT_3WAY && HAVE_SHA256_4WAY
|
||||||
if (throughput == 12)
|
if (throughput == 12)
|
||||||
scrypt_1024_1_1_256_12way(data, hash, midstate, scratchbuf);
|
scrypt_1024_1_1_256_12way(data, hash, midstate, scratchbuf);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_SCRYPT_6WAY)
|
#if HAVE_SCRYPT_6WAY
|
||||||
if (throughput == 24)
|
if (throughput == 24)
|
||||||
scrypt_1024_1_1_256_24way(data, hash, midstate, scratchbuf);
|
scrypt_1024_1_1_256_24way(data, hash, midstate, scratchbuf);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_SCRYPT_3WAY)
|
#if HAVE_SCRYPT_3WAY
|
||||||
if (throughput == 3)
|
if (throughput == 3)
|
||||||
scrypt_1024_1_1_256_3way(data, hash, midstate, scratchbuf);
|
scrypt_1024_1_1_256_3way(data, hash, midstate, scratchbuf);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user