Files
cpuminer-opt-gpu/algo/nist5/nist5-gate.c
Jay D Dee af1c940919 v3.7.5
2017-12-08 15:39:28 -05:00

17 lines
395 B
C

#include "nist5-gate.h"
bool register_nist5_algo( algo_gate_t* gate )
{
gate->optimizations = SSE2_OPT | AES_OPT | FOUR_WAY_OPT;
#if defined (NIST5_4WAY)
gate->scanhash = (void*)&scanhash_nist5_4way;
gate->hash = (void*)&nist5hash_4way;
#else
init_nist5_ctx();
gate->scanhash = (void*)&scanhash_nist5;
gate->hash = (void*)&nist5hash;
#endif
return true;
};