scrypt.h 541 B

123456789101112131415161718192021222324
  1. #ifndef SCRYPT_H
  2. #define SCRYPT_H
  3. #include "miner.h"
  4. #ifdef USE_SCRYPT
  5. extern int scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
  6. uint32_t nonce);
  7. extern void scrypt_regenhash(struct work *work);
  8. #else /* USE_SCRYPT */
  9. static inline int scrypt_test(__maybe_unused unsigned char *pdata,
  10. __maybe_unused const unsigned char *ptarget,
  11. __maybe_unused uint32_t nonce)
  12. {
  13. return 0;
  14. }
  15. static inline void scrypt_regenhash(__maybe_unused struct work *work)
  16. {
  17. }
  18. #endif /* USE_SCRYPT */
  19. #endif /* SCRYPT_H */