mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
18 lines
419 B
C
18 lines
419 B
C
#include "whirlpool-gate.h"
|
|
|
|
bool register_whirlpool_algo( algo_gate_t* gate )
|
|
{
|
|
#if defined (WHIRLPOOL_4WAY)
|
|
four_way_not_tested();
|
|
gate->optimizations = AVX2_OPT;
|
|
gate->scanhash = (void*)&scanhash_whirlpool_4way;
|
|
gate->hash = (void*)&whirlpool_hash_4way;
|
|
#else
|
|
gate->scanhash = (void*)&scanhash_whirlpool;
|
|
gate->hash = (void*)&whirlpool_hash;
|
|
init_whirlpool_ctx();
|
|
#endif
|
|
return true;
|
|
};
|
|
|