Files
cpuminer-opt-gpu/algo/whirlpool/whirlpool-gate.c
Jay D Dee ad2275f74a v3.8.0
2018-01-23 21:02:16 -05:00

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;
};