mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
19 lines
504 B
C
19 lines
504 B
C
#include "nist5-gate.h"
|
|
|
|
bool register_nist5_algo( algo_gate_t* gate )
|
|
{
|
|
gate->optimizations = SSE2_OPT | AES_OPT | AVX2_OPT | AVX512_OPT;
|
|
#if defined (NIST5_8WAY)
|
|
gate->scanhash = (void*)&scanhash_nist5_8way;
|
|
gate->hash = (void*)&nist5hash_8way;
|
|
#elif defined (NIST5_4WAY)
|
|
gate->scanhash = (void*)&scanhash_nist5_4way;
|
|
gate->hash = (void*)&nist5hash_4way;
|
|
#else
|
|
gate->scanhash = (void*)&scanhash_nist5;
|
|
gate->hash = (void*)&nist5hash;
|
|
#endif
|
|
return true;
|
|
};
|
|
|