mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
21 lines
533 B
C
21 lines
533 B
C
#include "xevan-gate.h"
|
|
|
|
bool register_xevan_algo( algo_gate_t* gate )
|
|
{
|
|
#if defined (XEVAN_8WAY)
|
|
gate->scanhash = (void*)&scanhash_xevan_8way;
|
|
gate->hash = (void*)&xevan_8way_hash;
|
|
#elif defined (XEVAN_4WAY)
|
|
gate->scanhash = (void*)&scanhash_xevan_4way;
|
|
gate->hash = (void*)&xevan_4way_hash;
|
|
#else
|
|
init_xevan_ctx();
|
|
gate->scanhash = (void*)&scanhash_xevan;
|
|
gate->hash = (void*)&xevan_hash;
|
|
#endif
|
|
gate->optimizations = SSE2_OPT | AES_OPT | AVX2_OPT;
|
|
opt_target_factor = 256.0;
|
|
return true;
|
|
};
|
|
|