mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v25.4
This commit is contained in:
@@ -4,10 +4,6 @@
|
||||
#include <stddef.h>
|
||||
#include "simd-utils.h"
|
||||
|
||||
#define SPH_SIZE_shabal256 256
|
||||
|
||||
#define SPH_SIZE_shabal512 512
|
||||
|
||||
#if defined(SIMD512)
|
||||
|
||||
typedef struct {
|
||||
@@ -16,22 +12,27 @@ typedef struct {
|
||||
uint32_t Whigh, Wlow;
|
||||
size_t ptr;
|
||||
bool state_loaded;
|
||||
} shabal_16way_context __attribute__ ((aligned (64)));
|
||||
} shabal_16x32_context __attribute__ ((aligned (64)));
|
||||
|
||||
typedef shabal_16way_context shabal256_16way_context;
|
||||
typedef shabal_16way_context shabal512_16way_context;
|
||||
typedef shabal_16x32_context shabal256_16x32_context;
|
||||
typedef shabal_16x32_context shabal512_16x32_context;
|
||||
|
||||
void shabal256_16way_init( void *cc );
|
||||
void shabal256_16way_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_16way_close( void *cc, void *dst );
|
||||
void shabal256_16way_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
void shabal256_16x32_init( void *cc );
|
||||
void shabal256_16x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_16x32_close( void *cc, void *dst );
|
||||
|
||||
void shabal512_16way_init( void *cc );
|
||||
void shabal512_16way_update( void *cc, const void *data, size_t len );
|
||||
void shabal512_16way_close( void *cc, void *dst );
|
||||
void shabal512_16way_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
void shabal512_16x32_init( void *cc );
|
||||
void shabal512_16x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal512_16x32_close( void *cc, void *dst );
|
||||
|
||||
#define shabal256_16way_context shabal256_16x32_context
|
||||
#define shabal256_16way_init shabal256_16x32_init
|
||||
#define shabal256_16way_update shabal256_16x32_update
|
||||
#define shabal256_16way_close shabal256_16x32_close
|
||||
#define shabal512_16way_context shabal512_16x32_context
|
||||
#define shabal512_16way_init shabal512_16x32_init
|
||||
#define shabal512_16way_update shabal512_16x32_update
|
||||
#define shabal512_16way_close shabal512_16x32_close
|
||||
|
||||
#endif
|
||||
|
||||
@@ -43,22 +44,27 @@ typedef struct {
|
||||
uint32_t Whigh, Wlow;
|
||||
size_t ptr;
|
||||
bool state_loaded;
|
||||
} shabal_8way_context __attribute__ ((aligned (64)));
|
||||
} shabal_8x32_context __attribute__ ((aligned (64)));
|
||||
|
||||
typedef shabal_8way_context shabal256_8way_context;
|
||||
typedef shabal_8way_context shabal512_8way_context;
|
||||
typedef shabal_8x32_context shabal256_8x32_context;
|
||||
typedef shabal_8x32_context shabal512_8x32_context;
|
||||
|
||||
void shabal256_8way_init( void *cc );
|
||||
void shabal256_8way_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_8way_close( void *cc, void *dst );
|
||||
void shabal256_8way_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
void shabal256_8x32_init( void *cc );
|
||||
void shabal256_8x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_8x32_close( void *cc, void *dst );
|
||||
|
||||
void shabal512_8way_init( void *cc );
|
||||
void shabal512_8way_update( void *cc, const void *data, size_t len );
|
||||
void shabal512_8way_close( void *cc, void *dst );
|
||||
void shabal512_8way_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
void shabal512_8x32_init( void *cc );
|
||||
void shabal512_8x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal512_8x32_close( void *cc, void *dst );
|
||||
|
||||
#define shabal256_8way_context shabal256_8x32_context
|
||||
#define shabal256_8way_init shabal256_8x32_init
|
||||
#define shabal256_8way_update shabal256_8x32_update
|
||||
#define shabal256_8way_close shabal256_8x32_close
|
||||
#define shabal512_8way_context shabal512_8x32_context
|
||||
#define shabal512_8way_init shabal512_8x32_init
|
||||
#define shabal512_8way_update shabal512_8x32_update
|
||||
#define shabal512_8way_close shabal512_8x32_close
|
||||
|
||||
#endif
|
||||
|
||||
@@ -70,59 +76,29 @@ typedef struct {
|
||||
uint32_t Whigh, Wlow;
|
||||
size_t ptr;
|
||||
bool state_loaded;
|
||||
} shabal_4way_context;
|
||||
} shabal_4x32_context;
|
||||
|
||||
typedef shabal_4way_context shabal256_4way_context;
|
||||
typedef shabal_4way_context shabal512_4way_context;
|
||||
typedef shabal_4x32_context shabal256_4x32_context;
|
||||
typedef shabal_4x32_context shabal512_4x32_context;
|
||||
|
||||
void shabal256_4way_init( void *cc );
|
||||
void shabal256_4way_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_4way_close( void *cc, void *dst );
|
||||
void shabal256_4way_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
void shabal256_4x32_init( void *cc );
|
||||
void shabal256_4x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_4x32_close( void *cc, void *dst );
|
||||
|
||||
void shabal512_4way_init( void *cc );
|
||||
void shabal512_4way_update( void *cc, const void *data, size_t len );
|
||||
void shabal512_4way_close( void *cc, void *dst );
|
||||
void shabal512_4way_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
void shabal512_4x32_init( void *cc );
|
||||
void shabal512_4x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal512_4x32_close( void *cc, void *dst );
|
||||
|
||||
#define shabal256_4way_context shabal256_4x32_context
|
||||
#define shabal256_4way_init shabal256_4x32_init
|
||||
#define shabal256_4way_update shabal256_4x32_update
|
||||
#define shabal256_4way_close shabal256_4x32_close
|
||||
#define shabal512_4way_context shabal512_4x32_context
|
||||
#define shabal512_4way_init shabal512_4x32_init
|
||||
#define shabal512_4way_update shabal512_4x32_update
|
||||
#define shabal512_4way_close shabal512_4x32_close
|
||||
|
||||
#endif
|
||||
|
||||
// SSE or NEON
|
||||
|
||||
/* No __mullo_pi32
|
||||
|
||||
typedef struct
|
||||
{
|
||||
v64_t buf[16] __attribute__ ((aligned (64)));
|
||||
v64_t A[12], B[16], C[16];
|
||||
uint32_t Whigh, Wlow;
|
||||
size_t ptr;
|
||||
bool state_loaded;
|
||||
} shabal_2x32_context;
|
||||
|
||||
typedef shabal_2x32_context shabal256_2x32_context;
|
||||
typedef shabal_2x32_context shabal512_2x32_context;
|
||||
|
||||
void shabal256_2x32_init( void *cc );
|
||||
void shabal256_2x32_update( void *cc, const void *data, size_t len );
|
||||
void shabal256_2x32_close( void *cc, void *dst );
|
||||
void shabal256_2x32_addbits_and_close( void *cc, unsigned ub, unsigned n,
|
||||
void *dst );
|
||||
|
||||
void shabal512_2x32_init( shabal512_2x32_context *cc );
|
||||
void shabal512_2x32_update( shabal512_2x32_context *cc, const void *data,
|
||||
size_t len );
|
||||
void shabal512_2x32_close( shabal512_2x32_context *cc, void *dst );
|
||||
void shabal512_2x32_addbits_and_close( shabal512_2x32_context *cc,
|
||||
unsigned ub, unsigned n, void *dst );
|
||||
void shabal512_2x32_ctx( shabal512_2x32_context *cc, void *dst,
|
||||
const void *data, size_t len );
|
||||
void shabal512_2x32( shabal512_2x32_context *dst, const void *data,
|
||||
size_t len );
|
||||
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user