Browse Source

use ROTL32 in x14_shabal

no impacts on perf but easier to read
master
KlausT 10 years ago committed by Tanguy Pruvot
parent
commit
cc9df2d361
  1. 4
      x15/cuda_x14_shabal512.cu

4
x15/cuda_x14_shabal512.cu

@ -126,10 +126,10 @@
#define PERM_ELT(xa0, xa1, xb0, xb1, xb2, xb3, xc, xm) do { \ #define PERM_ELT(xa0, xa1, xb0, xb1, xb2, xb3, xc, xm) do { \
xa0 = T32((xa0 \ xa0 = T32((xa0 \
^ (((xa1 << 15) | (xa1 >> 17)) * 5U) \ ^ (ROTL32(xa1, 15) * 5U) \
^ xc) * 3U) \ ^ xc) * 3U) \
^ xb1 ^ (xb2 & ~xb3) ^ xm; \ ^ xb1 ^ (xb2 & ~xb3) ^ xm; \
xb0 = T32(~(((xb0 << 1) | (xb0 >> 31)) ^ xa0)); \ xb0 = T32(~(ROTL32(xb0, 1) ^ xa0)); \
} while (0) } while (0)
#define PERM_STEP_0 do { \ #define PERM_STEP_0 do { \

Loading…
Cancel
Save