scrypt.h 562 B

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