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