From 051ba521beedd11889fe60bfb073b3e2f8a86f3e Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 14 May 2015 19:38:03 +0200 Subject: [PATCH] skein2: minimal host changes --- quark/cuda_skein512.cu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quark/cuda_skein512.cu b/quark/cuda_skein512.cu index ae30c19..1cb7f4d 100644 --- a/quark/cuda_skein512.cu +++ b/quark/cuda_skein512.cu @@ -893,6 +893,7 @@ void quark_skein512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNoun __host__ static void skein512_precalc_80(uint64_t* message) { + uint64_t p[8]; uint64_t h0, h1, h2, h3, h4, h5, h6, h7, h8; uint64_t t0, t1, t2; @@ -904,15 +905,14 @@ static void skein512_precalc_80(uint64_t* message) h5 = 0xEABE394CA9D5C3F4ull; h6 = 0x991112C71A75B523ull; h7 = 0xAE18A40B660FCC33ull; - h8 = h0 ^ h1 ^ h2 ^ h3 ^ h4 ^ h5 ^ h6 ^ h7 ^ SPH_C64(0x1BD11BDAA9FC1A22); + // h8 = h0 ^ h1 ^ h2 ^ h3 ^ h4 ^ h5 ^ h6 ^ h7 ^ SPH_C64(0x1BD11BDAA9FC1A22); + h8 = 0xcab2076d98173ec4ULL; t0 = 64; // ptr t1 = 0x7000000000000000ull; t2 = 0x7000000000000040ull; - uint64_t p[8]; - for (int i = 0; i<8; i++) - p[i] = message[i]; + memcpy(&p[0], &message[0], 64); TFBIG_4e_PRE(0); TFBIG_4o_PRE(1);