#include "sha256t-gate.h" bool register_sha256t_algo( algo_gate_t* gate ) { gate->optimizations = SSE2_OPT | AVX2_OPT | AVX512_OPT; #if defined(SHA256T_16WAY) gate->scanhash = (void*)&scanhash_sha256t_16way; gate->hash = (void*)&sha256t_16way_hash; #elif defined(__SHA__) gate->optimizations = SHA_OPT; gate->scanhash = (void*)&scanhash_sha256t; gate->hash = (void*)&sha256t_hash; #elif defined(SHA256T_8WAY) gate->scanhash = (void*)&scanhash_sha256t_8way; gate->hash = (void*)&sha256t_8way_hash; #else gate->scanhash = (void*)&scanhash_sha256t_4way; gate->hash = (void*)&sha256t_4way_hash; #endif return true; } bool register_sha256q_algo( algo_gate_t* gate ) { gate->optimizations = SSE2_OPT | AVX2_OPT | AVX512_OPT; #if defined(SHA256T_16WAY) gate->scanhash = (void*)&scanhash_sha256q_16way; gate->hash = (void*)&sha256q_16way_hash; #elif defined(__SHA__) gate->optimizations = SHA_OPT; gate->scanhash = (void*)&scanhash_sha256q; gate->hash = (void*)&sha256q_hash; #elif defined(SHA256T_8WAY) gate->scanhash = (void*)&scanhash_sha256q_8way; gate->hash = (void*)&sha256q_8way_hash; #else gate->scanhash = (void*)&scanhash_sha256q_4way; gate->hash = (void*)&sha256q_4way_hash; #endif return true; }