Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Fix skein256.cl for macOS #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions kernel/skein256.cl
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ __constant static const sph_u64 SKEIN_IV512_256[8] = {



__constant static const int ROT256[8][4] =
{
46, 36, 19, 37,
33, 27, 14, 42,
17, 49, 36, 39,
44, 9, 54, 56,
39, 30, 34, 24,
13, 50, 10, 17,
25, 29, 39, 43,
8, 35, 56, 22,
__constant static const int ROT256[8][4] = {
{
46, 36, 19, 37,
33, 27, 14, 42,
17, 49, 36, 39,
44, 9, 54, 56,
39, 30, 34, 24,
13, 50, 10, 17,
25, 29, 39, 43,
8, 35, 56, 22,
}
};

__constant static const sph_u64 skein_ks_parity = 0x1BD11BDAA9FC1A22;
Expand Down Expand Up @@ -102,4 +103,4 @@ p6 += p7; p7 = SPH_ROTL64(p7, ROT256[ROT][3]); p7 ^= p6; \
p5 += h[((R)+6) % 9] + t[((R)+1) % 3]; \
p6 += h[((R)+7) % 9] + t[((R)+2) % 3]; \
p7 += h[((R)+8) % 9] + (R+1); \
}
}