This commit is contained in:
Jay D Dee
2023-10-06 22:18:09 -04:00
parent bc5a5c6df8
commit 31c4dedf59
144 changed files with 5931 additions and 3746 deletions

View File

@@ -11,13 +11,13 @@ void sha3d_hash_8way(void *state, const void *input)
uint32_t buffer[16*8] __attribute__ ((aligned (128)));
keccak256_8way_context ctx;
keccak256_8way_init( &ctx );
keccak256_8way_update( &ctx, input, 80 );
keccak256_8way_close( &ctx, buffer );
keccak256_8x64_init( &ctx );
keccak256_8x64_update( &ctx, input, 80 );
keccak256_8x64_close( &ctx, buffer );
keccak256_8way_init( &ctx );
keccak256_8way_update( &ctx, buffer, 32 );
keccak256_8way_close( &ctx, state );
keccak256_8x64_init( &ctx );
keccak256_8x64_update( &ctx, buffer, 32 );
keccak256_8x64_close( &ctx, state );
}
int scanhash_sha3d_8way( struct work *work, uint32_t max_nonce,
@@ -71,13 +71,13 @@ void sha3d_hash_4way(void *state, const void *input)
uint32_t buffer[16*4] __attribute__ ((aligned (64)));
keccak256_4way_context ctx;
keccak256_4way_init( &ctx );
keccak256_4way_update( &ctx, input, 80 );
keccak256_4way_close( &ctx, buffer );
keccak256_4x64_init( &ctx );
keccak256_4x64_update( &ctx, input, 80 );
keccak256_4x64_close( &ctx, buffer );
keccak256_4way_init( &ctx );
keccak256_4way_update( &ctx, buffer, 32 );
keccak256_4way_close( &ctx, state );
keccak256_4x64_init( &ctx );
keccak256_4x64_update( &ctx, buffer, 32 );
keccak256_4x64_close( &ctx, state );
}
int scanhash_sha3d_4way( struct work *work, uint32_t max_nonce,