PyBitmessage-2021-04-27/src/workprover/fastsolver/common.h

20 lines
450 B
C
Raw Normal View History

2018-06-23 08:57:34 +00:00
#ifndef COMMON_H
#define COMMON_H
2018-06-25 07:51:39 +00:00
#ifdef _WIN32
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __attribute__ ((visibility("default")))
#endif
2018-06-23 08:57:34 +00:00
extern volatile int run;
#define SEED_LENGTH (32 + 8)
extern const char *initial_hash;
extern unsigned long long target;
extern const char *seed;
int work(char *nonce, unsigned long long *iterations_count, size_t thread_number);
#endif