mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v23.5
This commit is contained in:
@@ -35,13 +35,19 @@ typedef struct
|
||||
__m512i val[8];
|
||||
uint64_t count;
|
||||
bool initialized;
|
||||
} sha512_8way_context __attribute__ ((aligned (128)));
|
||||
} sha512_8x64_context __attribute__ ((aligned (128)));
|
||||
#define sha512_8way_context sha512_8x64_context
|
||||
|
||||
void sha512_8way_init( sha512_8way_context *sc);
|
||||
void sha512_8way_update( sha512_8way_context *sc, const void *data,
|
||||
void sha512_8x64_init( sha512_8x64_context *sc);
|
||||
void sha512_8x64_update( sha512_8x64_context *sc, const void *data,
|
||||
size_t len );
|
||||
void sha512_8way_close( sha512_8way_context *sc, void *dst );
|
||||
void sha512_8way_full( void *dst, const void *data, size_t len );
|
||||
void sha512_8x64_close( sha512_8x64_context *sc, void *dst );
|
||||
void sha512_8x64_ctx( sha512_8x64_context *sc, void *dst, const void *data,
|
||||
size_t len );
|
||||
|
||||
#define sha512_8way_init sha512_8x64_init
|
||||
#define sha512_8way_update sha512_8x64_update
|
||||
#define sha512_8way_close sha512_8x64_close
|
||||
|
||||
#endif // AVX512
|
||||
|
||||
@@ -55,14 +61,36 @@ typedef struct
|
||||
__m256i val[8];
|
||||
uint64_t count;
|
||||
bool initialized;
|
||||
} sha512_4way_context __attribute__ ((aligned (64)));
|
||||
} sha512_4x64_context __attribute__ ((aligned (64)));
|
||||
#define sha512_4way_context sha512_4x64_context
|
||||
|
||||
void sha512_4way_init( sha512_4way_context *sc);
|
||||
void sha512_4way_update( sha512_4way_context *sc, const void *data,
|
||||
void sha512_4x64_init( sha512_4x64_context *sc);
|
||||
void sha512_4x64_update( sha512_4x64_context *sc, const void *data,
|
||||
size_t len );
|
||||
void sha512_4way_close( sha512_4way_context *sc, void *dst );
|
||||
void sha512_4way_full( void *dst, const void *data, size_t len );
|
||||
void sha512_4x64_close( sha512_4x64_context *sc, void *dst );
|
||||
void sha512_4x64_ctx( sha512_4x64_context *sc, void *dst, const void *data,
|
||||
size_t len );
|
||||
|
||||
#define sha512_4way_init sha512_4x64_init
|
||||
#define sha512_4way_update sha512_4x64_update
|
||||
#define sha512_4way_close sha512_4x64_close
|
||||
|
||||
#endif // AVX2
|
||||
|
||||
typedef struct
|
||||
{
|
||||
v128u64_t buf[128>>3];
|
||||
v128u64_t val[8];
|
||||
uint64_t count;
|
||||
bool initialized;
|
||||
} sha512_2x64_context __attribute__ ((aligned (64)));
|
||||
|
||||
void sha512_2x64_init( sha512_2x64_context *sc);
|
||||
void sha512_2x64_update( sha512_2x64_context *sc, const void *data,
|
||||
size_t len );
|
||||
void sha512_2x64_close( sha512_2x64_context *sc, void *dst );
|
||||
void sha512_2x64( void *dst, const void *data, size_t len );
|
||||
void sha512_2x64_ctx( sha512_2x64_context *sc, void *dst, const void *data,
|
||||
size_t len );
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user