Browse Source

Fix x14 algo code style

djm34
Elbandi 11 years ago
parent
commit
0a66d49a0e
  1. 13
      algorithm/x14.c

13
algorithm/x14.c

@ -108,7 +108,7 @@ inline void x14hash(void *state, const void *input) @@ -108,7 +108,7 @@ inline void x14hash(void *state, const void *input)
Xhash_context_holder ctx;
uint32_t hashA[16], hashB[16];
//blake-bmw-groestl-sken-jh-meccak-luffa-cubehash-shivite-simd-echo
memcpy(&ctx, &base_contexts, sizeof(base_contexts));
sph_blake512 (&ctx.blake1, input, 80);
@ -194,15 +194,6 @@ void x14_regenhash(struct work *work) @@ -194,15 +194,6 @@ void x14_regenhash(struct work *work)
x14hash(ohash, data);
}
static inline void be32enc(void *pp, uint32_t x)
{
uint8_t *p = (uint8_t *)pp;
p[3] = x & 0xff;
p[2] = (x >> 8) & 0xff;
p[1] = (x >> 16) & 0xff;
p[0] = (x >> 24) & 0xff;
}
bool scanhash_x14(struct thr_info *thr, const unsigned char __maybe_unused *pmidstate,
unsigned char *pdata, unsigned char __maybe_unused *phash1,
unsigned char __maybe_unused *phash, const unsigned char *ptarget,
@ -243,5 +234,3 @@ bool scanhash_x14(struct thr_info *thr, const unsigned char __maybe_unused *pmid @@ -243,5 +234,3 @@ bool scanhash_x14(struct thr_info *thr, const unsigned char __maybe_unused *pmid
return ret;
}

Loading…
Cancel
Save