2012-08-07 19:56:43 +10:00
|
|
|
#ifndef SCRYPT_H
|
|
|
|
#define SCRYPT_H
|
|
|
|
|
2012-10-15 23:10:24 +11:00
|
|
|
#include "miner.h"
|
|
|
|
|
2012-08-07 19:56:43 +10:00
|
|
|
#ifdef USE_SCRYPT
|
2013-04-18 15:07:32 +10:00
|
|
|
extern int scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
|
2012-08-15 09:06:23 +10:00
|
|
|
uint32_t nonce);
|
2013-04-18 12:26:32 +10:00
|
|
|
extern void scrypt_regenhash(struct work *work);
|
2012-10-15 23:10:24 +11:00
|
|
|
|
2012-08-07 19:56:43 +10:00
|
|
|
#else /* USE_SCRYPT */
|
2013-04-18 15:07:32 +10:00
|
|
|
static inline int scrypt_test(__maybe_unused unsigned char *pdata,
|
2012-08-15 09:06:23 +10:00
|
|
|
__maybe_unused const unsigned char *ptarget,
|
|
|
|
__maybe_unused uint32_t nonce)
|
2012-08-07 19:56:43 +10:00
|
|
|
{
|
2013-04-18 15:07:32 +10:00
|
|
|
return 0;
|
2012-08-07 19:56:43 +10:00
|
|
|
}
|
2012-10-15 23:10:24 +11:00
|
|
|
|
2013-04-18 12:26:32 +10:00
|
|
|
static inline void scrypt_regenhash(__maybe_unused struct work *work)
|
2012-10-15 23:10:24 +11:00
|
|
|
{
|
|
|
|
}
|
2012-08-07 19:56:43 +10:00
|
|
|
#endif /* USE_SCRYPT */
|
|
|
|
|
|
|
|
#endif /* SCRYPT_H */
|