mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
24 lines
528 B
C
24 lines
528 B
C
#ifndef RIPEMD_HASH_4WAY_H__
|
|
#define RIPEMD_HASH_4WAY_H__
|
|
|
|
#include <stddef.h>
|
|
#include "algo/sha/sph_types.h"
|
|
|
|
#if defined(__AVX__)
|
|
|
|
#include "avxdefs.h"
|
|
|
|
typedef struct
|
|
{
|
|
__m128i buf[64>>2];
|
|
__m128i val[5];
|
|
uint32_t count_high, count_low;
|
|
} __attribute__ ((aligned (64))) ripemd160_4way_context;
|
|
|
|
void ripemd160_4way_init( ripemd160_4way_context *sc );
|
|
void ripemd160_4way( ripemd160_4way_context *sc, const void *data, size_t len );
|
|
void ripemd160_4way_close( ripemd160_4way_context *sc, void *dst );
|
|
|
|
#endif
|
|
#endif
|