Skip to content

Commit

Permalink
Performance optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
reorder committed Mar 31, 2014
1 parent 8d4c3d5 commit df239c4
Show file tree
Hide file tree
Showing 8 changed files with 261 additions and 7,839 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -512,7 +512,7 @@ AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["diablo130302"], [Filename for diablo ker
AC_DEFINE_UNQUOTED([SCRYPT_KERNNAME], ["scrypt130511"], [Filename for scrypt kernel])
AC_DEFINE_UNQUOTED([KECCAK_KERNNAME], ["keccak130718"], [Filename for keccak kernel])
AC_DEFINE_UNQUOTED([SKEIN_KERNNAME], ["skein"], [Filename for skein kernel])
AC_DEFINE_UNQUOTED([HEAVY_KERNNAME], ["heavy140327"], [Filename for heavy kernel])
AC_DEFINE_UNQUOTED([HEAVY_KERNNAME], ["heavy140330"], [Filename for heavy kernel])


AC_SUBST(OPENCL_LIBS)
Expand Down
1,630 changes: 0 additions & 1,630 deletions heavy140312.cl

This file was deleted.

1,092 changes: 0 additions & 1,092 deletions heavy140318.cl

This file was deleted.

1,623 changes: 0 additions & 1,623 deletions heavy140319.cl

This file was deleted.

1,619 changes: 0 additions & 1,619 deletions heavy140320.cl

This file was deleted.

1,618 changes: 0 additions & 1,618 deletions heavy140325.cl

This file was deleted.

513 changes: 257 additions & 256 deletions heavy140327.cl → heavy140330.cl

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions hefty1.c
Expand Up @@ -382,6 +382,9 @@ void hefty_midstate(const unsigned char *buf, unsigned char *midstate)
HEFTY1_CTX ctx;
HEFTY1_Init(&ctx);
HEFTY1_Update(&ctx, buf, 64);
Absorb((&ctx)->sponge, Reverse32(((unsigned int*)buf)[16]) ^ K[0]);
Absorb((&ctx)->sponge, Reverse32(((unsigned int*)buf)[17]) ^ K[1]);
Absorb((&ctx)->sponge, Reverse32(((unsigned int*)buf)[18]) ^ K[2]);
int i;
for (i = 0; i < 4; i++)
((uint32_t*)midstate)[i] = (&ctx)->sponge[i];
Expand Down

0 comments on commit df239c4

Please sign in to comment.