|
|
|
@ -47,9 +47,16 @@ static uint32_t *d_resNounce[8];
@@ -47,9 +47,16 @@ static uint32_t *d_resNounce[8];
|
|
|
|
|
static uint32_t *h_resNounce[8]; |
|
|
|
|
|
|
|
|
|
__constant__ |
|
|
|
|
static uint32_t __align__(32) c_sigma[16][16]; |
|
|
|
|
#ifdef WIN32 |
|
|
|
|
/* what the fuck ! */ |
|
|
|
|
static uint8_t c_sigma[16][16]; |
|
|
|
|
const uint8_t host_sigma[16][16] = |
|
|
|
|
#else |
|
|
|
|
/* prefer uint32_t to prevent size conversions = speed +5/10 % */ |
|
|
|
|
const uint32_t host_sigma[16][16] = { |
|
|
|
|
static uint32_t __align__(32) c_sigma[16][16]; |
|
|
|
|
const uint32_t host_sigma[16][16] |
|
|
|
|
#endif |
|
|
|
|
= { |
|
|
|
|
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, |
|
|
|
|
{14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }, |
|
|
|
|
{11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 }, |
|
|
|
|