Merge pull request #1149 from philsmd/master

osx: -m 3200 = bcrypt needs a volatile variable
pull/1150/head
Jens Steube 7 years ago committed by GitHub
commit fe66714fd7

@ -332,6 +332,14 @@ __constant u32a c_sbox3[256] =
}
#endif
// temporary hack for Apple Iris GPUs (with as little performance drop as possible)
#ifdef IS_APPLE
#define TMP_TYPE volatile u32
#else
#define TMP_TYPE u32
#endif
#define BF_ENCRYPT(L,R) \
{ \
L ^= P[0]; \
@ -353,7 +361,7 @@ __constant u32a c_sbox3[256] =
BF_ROUND (L, R, 15); \
BF_ROUND (R, L, 16); \
\
u32 tmp; \
TMP_TYPE tmp; \
\
tmp = R; \
R = L; \

@ -35,6 +35,7 @@
##
- Workaround added for NVidia OpenCL runtime: RACF kernel requires EBCDIC lookup to be done on shared memory
- Workaround added for Apple OpenCL runtime: bcrypt kernel requires a volatile variable because of a compiler optimization bug
- Workaround added for AMDGPU-Pro OpenCL runtime: AES encrypt and decrypt Invertkey function was calculated wrong in certain cases
- Workaround added for AMDGPU-Pro OpenCL runtime: RAR3 kernel require a volatile variable to work correctly

Loading…
Cancel
Save