mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
38 lines
963 B
C
38 lines
963 B
C
#ifndef SKUNK_GATE_H__
|
|
#define SKUNK_GATE_H__ 1
|
|
|
|
#include "algo-gate-api.h"
|
|
#include <stdint.h>
|
|
|
|
#if defined(SIMD512)
|
|
#define SKUNK_8WAY 1
|
|
#elif defined(__AVX2__)
|
|
#define SKUNK_4WAY 1
|
|
#endif
|
|
|
|
bool register_skunk_algo( algo_gate_t* gate );
|
|
|
|
#if defined(SKUNK_8WAY)
|
|
|
|
void skunk_8way_hash( void *state, const void *input );
|
|
int scanhash_skunk_8way( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
bool skunk_8way_thread_init();
|
|
|
|
#elif defined(SKUNK_4WAY)
|
|
|
|
void skunk_4way_hash( void *state, const void *input );
|
|
int scanhash_skunk_4way( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
bool skunk_4way_thread_init();
|
|
|
|
#endif
|
|
|
|
void skunkhash( void *state, const void *input );
|
|
int scanhash_skunk( struct work *work, uint32_t max_nonce,
|
|
uint64_t *hashes_done, struct thr_info *mythr );
|
|
bool skunk_thread_init();
|
|
|
|
#endif
|
|
|