mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v3.5.11
This commit is contained in:
@@ -49,11 +49,10 @@ void lyra2_blake256_midstate( const void* input )
|
||||
|
||||
void lyra2re_hash(void *state, const void *input)
|
||||
{
|
||||
lyra2re_ctx_holder ctx;
|
||||
lyra2re_ctx_holder ctx __attribute__ ((aligned (64))) ;
|
||||
memcpy(&ctx, &lyra2re_ctx, sizeof(lyra2re_ctx));
|
||||
|
||||
// uint32_t _ALIGN(128) hashA[8], hashB[8];
|
||||
uint8_t _ALIGN(128) hash[32*8];
|
||||
uint8_t _ALIGN(64) hash[32*8];
|
||||
#define hashA hash
|
||||
#define hashB hash+16
|
||||
|
||||
@@ -63,7 +62,6 @@ void lyra2re_hash(void *state, const void *input)
|
||||
memcpy( &ctx.blake, &lyra2_blake_mid, sizeof lyra2_blake_mid );
|
||||
sph_blake256( &ctx.blake, input + midlen, tail );
|
||||
|
||||
// sph_blake256(&ctx.blake, input, 80);
|
||||
sph_blake256_close(&ctx.blake, hashA);
|
||||
|
||||
sph_keccak256(&ctx.keccak, hashA, 32);
|
||||
@@ -91,7 +89,7 @@ int scanhash_lyra2re(int thr_id, struct work *work,
|
||||
uint32_t *pdata = work->data;
|
||||
uint32_t *ptarget = work->target;
|
||||
uint32_t _ALIGN(64) endiandata[20];
|
||||
uint32_t hash[8] __attribute__((aligned(32)));
|
||||
uint32_t hash[8] __attribute__((aligned(64)));
|
||||
const uint32_t first_nonce = pdata[19];
|
||||
uint32_t nonce = first_nonce;
|
||||
const uint32_t Htarg = ptarget[7];
|
||||
|
||||
@@ -48,9 +48,9 @@ void l2v2_blake256_midstate( const void* input )
|
||||
|
||||
void lyra2rev2_hash( void *state, const void *input )
|
||||
{
|
||||
lyra2v2_ctx_holder ctx;
|
||||
lyra2v2_ctx_holder ctx __attribute__ ((aligned (64)));
|
||||
memcpy( &ctx, &lyra2v2_ctx, sizeof(lyra2v2_ctx) );
|
||||
uint32_t _ALIGN(128) hashA[8], hashB[8];
|
||||
uint32_t hashA[8], hashB[8] __attribute__ ((aligned (64)));
|
||||
|
||||
const int midlen = 64; // bytes
|
||||
const int tail = 80 - midlen; // 16
|
||||
@@ -84,8 +84,8 @@ int scanhash_lyra2rev2(int thr_id, struct work *work,
|
||||
{
|
||||
uint32_t *pdata = work->data;
|
||||
uint32_t *ptarget = work->target;
|
||||
uint32_t _ALIGN(64) endiandata[20];
|
||||
uint32_t hash[8] __attribute__((aligned(32)));
|
||||
uint32_t endiandata[20] __attribute__ ((aligned (64)));
|
||||
uint32_t hash[8] __attribute__((aligned(64)));
|
||||
const uint32_t first_nonce = pdata[19];
|
||||
uint32_t nonce = first_nonce;
|
||||
const uint32_t Htarg = ptarget[7];
|
||||
|
||||
@@ -22,9 +22,9 @@ void zcoin_midstate( const void* input )
|
||||
//void zcoin_hash(void *state, const void *input, uint32_t height)
|
||||
void zcoin_hash(void *state, const void *input )
|
||||
{
|
||||
uint32_t _ALIGN(256) hash[16];
|
||||
uint32_t _ALIGN(64) hash[16];
|
||||
|
||||
sph_blake256_context ctx_blake;
|
||||
sph_blake256_context ctx_blake __attribute__ ((aligned (64)));
|
||||
|
||||
memcpy( &ctx_blake, &zcoin_blake_mid, sizeof zcoin_blake_mid );
|
||||
sph_blake256( &ctx_blake, input + 64, 16 );
|
||||
@@ -38,8 +38,8 @@ void zcoin_hash(void *state, const void *input )
|
||||
int scanhash_zcoin( int thr_id, struct work *work, uint32_t max_nonce,
|
||||
uint64_t *hashes_done )
|
||||
{
|
||||
uint32_t _ALIGN(128) hash[8];
|
||||
uint32_t _ALIGN(128) endiandata[20];
|
||||
uint32_t _ALIGN(64) hash[8];
|
||||
uint32_t _ALIGN(64) endiandata[20];
|
||||
uint32_t *pdata = work->data;
|
||||
uint32_t *ptarget = work->target;
|
||||
const uint32_t Htarg = ptarget[7];
|
||||
|
||||
@@ -18,8 +18,8 @@ void zoin_hash(void *state, const void *input, uint32_t height)
|
||||
int scanhash_zoin( int thr_id, struct work *work, uint32_t max_nonce,
|
||||
uint64_t *hashes_done )
|
||||
{
|
||||
uint32_t _ALIGN(128) hash[8];
|
||||
uint32_t _ALIGN(128) endiandata[20];
|
||||
uint32_t hash[8] __attribute__ ((aligned (64)));
|
||||
uint32_t endiandata[20] __attribute__ ((aligned (64)));
|
||||
uint32_t *pdata = work->data;
|
||||
uint32_t *ptarget = work->target;
|
||||
const uint32_t Htarg = ptarget[7];
|
||||
|
||||
Reference in New Issue
Block a user