mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
#ifndef __SHA256T_GATE_H__
|
|
#define __SHA256T_GATE_H__ 1
|
|
|
|
#include <stdint.h>
|
|
#include "algo-gate-api.h"
|
|
|
|
#if defined(__AVX2__)
|
|
#define SHA256T_8WAY
|
|
#else
|
|
#define SHA256T_4WAY
|
|
#endif
|
|
|
|
bool register_sha256t_algo( algo_gate_t* gate );
|
|
bool register_sha256q_algo( algo_gate_t* gate );
|
|
|
|
#if defined(SHA256T_8WAY)
|
|
|
|
void sha256t_8way_hash( void *output, const void *input );
|
|
int scanhash_sha256t_8way( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
void sha256q_8way_hash( void *output, const void *input );
|
|
int scanhash_sha256q_8way( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
#endif
|
|
|
|
#if defined(SHA256T_4WAY)
|
|
|
|
void sha256t_4way_hash( void *output, const void *input );
|
|
int scanhash_sha256t_4way( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
void sha256q_4way_hash( void *output, const void *input );
|
|
int scanhash_sha256q_4way( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
#endif
|
|
|
|
/*
|
|
void sha256t_hash( void *output, const void *input );
|
|
int scanhash_sha256t( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
void sha256q_hash( void *output, const void *input );
|
|
int scanhash_sha256q( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
*/
|
|
#endif
|
|
|