mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v25.1
This commit is contained in:
@@ -15,11 +15,7 @@
|
||||
#include "algo/hamsi/sph_hamsi.h"
|
||||
#include "algo/shabal/sph_shabal.h"
|
||||
#include "algo/cubehash/cubehash_sse2.h"
|
||||
#if defined(__aarch64__)
|
||||
#include "algo/simd/sph_simd.h"
|
||||
#else
|
||||
#include "algo/simd/nist.h"
|
||||
#endif
|
||||
#include "algo/simd/simd-hash-2way.h"
|
||||
#if defined(__AES__)
|
||||
#include "algo/echo/aes_ni/hash_api.h"
|
||||
#include "algo/groestl/aes_ni/hash-groestl.h"
|
||||
@@ -49,11 +45,7 @@ typedef struct {
|
||||
hashState_luffa luffa;
|
||||
cubehashParam cube;
|
||||
sph_shavite512_context shavite;
|
||||
#if defined(__aarch64__)
|
||||
sph_simd512_context simd;
|
||||
#else
|
||||
hashState_sd simd;
|
||||
#endif
|
||||
simd512_context simd;
|
||||
sph_hamsi512_context hamsi;
|
||||
sph_shabal512_context shabal;
|
||||
} x14_ctx_holder;
|
||||
@@ -79,11 +71,6 @@ void init_x14_ctx()
|
||||
init_luffa( &x14_ctx.luffa,512 );
|
||||
cubehashInit( &x14_ctx.cube,512,16,32 );
|
||||
sph_shavite512_init( &x14_ctx.shavite );
|
||||
#if defined(__aarch64__)
|
||||
sph_simd512_init( &x14_ctx.simd );
|
||||
#else
|
||||
init_sd( &x14_ctx.simd, 512 );
|
||||
#endif
|
||||
sph_hamsi512_init( &x14_ctx.hamsi );
|
||||
sph_shabal512_init( &x14_ctx.shabal );
|
||||
};
|
||||
@@ -124,13 +111,7 @@ void x14hash(void *output, const void *input)
|
||||
sph_shavite512( &ctx.shavite, hash, 64);
|
||||
sph_shavite512_close( &ctx.shavite, hash);
|
||||
|
||||
#if defined(__aarch64__)
|
||||
sph_simd512(&ctx.simd, (const void*) hash, 64);
|
||||
sph_simd512_close(&ctx.simd, hash);
|
||||
#else
|
||||
update_final_sd( &ctx.simd, (BitSequence *)hash,
|
||||
(const BitSequence *)hash, 512 );
|
||||
#endif
|
||||
simd512_ctx( &ctx.simd, hash, hash, 64 );
|
||||
|
||||
#if defined(__AES__)
|
||||
update_final_echo ( &ctx.echo, (BitSequence *)hash,
|
||||
|
Reference in New Issue
Block a user