mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
27 lines
616 B
C
27 lines
616 B
C
#ifndef __SKEIN_GATE_H__
|
|
#define __SKEIN_GATE_H__
|
|
#include <stdint.h>
|
|
#include "algo-gate-api.h"
|
|
|
|
// Override multi way on ryzen, SHA is better.
|
|
#if !defined(RYZEN_)
|
|
#if defined(__AVX2__)
|
|
#define SKEIN_4WAY
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(SKEIN_4WAY)
|
|
|
|
void skeinhash_4way( void *output, const void *input );
|
|
|
|
int scanhash_skein_4way( int thr_id, struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done );
|
|
#endif
|
|
|
|
void skeinhash( void *output, const void *input );
|
|
|
|
int scanhash_skein( int thr_id, struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done );
|
|
|
|
#endif
|