mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
21 lines
499 B
C
21 lines
499 B
C
#include "blake2b-gate.h"
|
|
|
|
|
|
bool register_blake2b_algo( algo_gate_t* gate )
|
|
{
|
|
#if defined(BLAKE2B_8WAY)
|
|
gate->scanhash = (void*)&scanhash_blake2b_8way;
|
|
// gate->hash = (void*)&blake2b_8way_hash;
|
|
#elif defined(BLAKE2B_4WAY)
|
|
gate->scanhash = (void*)&scanhash_blake2b_4way;
|
|
gate->hash = (void*)&blake2b_4way_hash;
|
|
#else
|
|
gate->scanhash = (void*)&scanhash_blake2b;
|
|
gate->hash = (void*)&blake2b_hash;
|
|
#endif
|
|
gate->optimizations = AVX2_OPT | AVX512_OPT;
|
|
return true;
|
|
};
|
|
|
|
|