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:
@@ -17,11 +17,7 @@
|
||||
#else
|
||||
#include "algo/groestl/sph_groestl.h"
|
||||
#endif
|
||||
#if defined(__aarch64__)
|
||||
#include "algo/luffa/sph_luffa.h"
|
||||
#else
|
||||
#include "algo/luffa/luffa_for_sse2.h"
|
||||
#endif
|
||||
#include "algo/luffa/luffa_for_sse2.h"
|
||||
|
||||
static __thread uint32_t s_ntime = UINT32_MAX;
|
||||
static __thread int permutation[TT8_FUNC_COUNT] = { 0 };
|
||||
@@ -32,11 +28,7 @@ typedef struct {
|
||||
sph_skein512_context skein;
|
||||
sph_jh512_context jh;
|
||||
sph_keccak512_context keccak;
|
||||
#if defined(__aarch64__)
|
||||
sph_luffa512_context luffa;
|
||||
#else
|
||||
hashState_luffa luffa;
|
||||
#endif
|
||||
cubehashParam cube;
|
||||
#ifdef __AES__
|
||||
hashState_groestl groestl;
|
||||
@@ -55,11 +47,7 @@ void init_tt8_ctx()
|
||||
sph_skein512_init( &tt_ctx.skein );
|
||||
sph_jh512_init( &tt_ctx.jh );
|
||||
sph_keccak512_init( &tt_ctx.keccak );
|
||||
#if defined(__aarch64__)
|
||||
sph_luffa512_init( &tt_ctx.luffa );
|
||||
#else
|
||||
init_luffa( &tt_ctx.luffa, 512 );
|
||||
#endif
|
||||
cubehashInit( &tt_ctx.cube, 512, 16, 32 );
|
||||
#ifdef __AES__
|
||||
init_groestl( &tt_ctx.groestl, 64 );
|
||||
@@ -183,25 +171,14 @@ void timetravel_hash(void *output, const void *input)
|
||||
case 6:
|
||||
if ( i == 0 )
|
||||
{
|
||||
#if defined(__aarch64__)
|
||||
memcpy( &ctx.luffa, &tt_mid.luffa, sizeof tt_mid.luffa );
|
||||
sph_luffa512( &ctx.luffa, input + 64, 16 );
|
||||
sph_luffa512_close( &ctx.luffa, hashB );
|
||||
#else
|
||||
memcpy( &ctx.luffa, &tt_mid.luffa, sizeof tt_mid.luffa );
|
||||
update_and_final_luffa( &ctx.luffa, hashB,
|
||||
input + 64, 16 );
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined(__aarch64__)
|
||||
sph_luffa512( &ctx.luffa, hashA, dataLen );
|
||||
sph_luffa512_close( &ctx.luffa, hashB );
|
||||
#else
|
||||
update_and_final_luffa( &ctx.luffa, hashB,
|
||||
hashA, dataLen );
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
@@ -287,11 +264,7 @@ int scanhash_timetravel( struct work *work, uint32_t max_nonce,
|
||||
break;
|
||||
case 6:
|
||||
memcpy( &tt_mid.luffa, &tt_ctx.luffa, sizeof(tt_mid.luffa ) );
|
||||
#if defined(__aarch64__)
|
||||
sph_luffa512( &tt_mid.luffa, endiandata, 64 );
|
||||
#else
|
||||
update_luffa( &tt_mid.luffa, endiandata, 64 );
|
||||
#endif
|
||||
break;
|
||||
case 7:
|
||||
memcpy( &tt_mid.cube, &tt_ctx.cube, sizeof(tt_mid.cube ) );
|
||||
|
Reference in New Issue
Block a user