From 3d9b071e1eb3174af9d7808859dab5b0f7f0a722 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 16 Jul 2017 12:30:09 +0200 Subject: [PATCH] Improve CPU cracking speed by replacing vector comparison functions with the more advanced ones available on CPU --- OpenCL/inc_simd.cl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenCL/inc_simd.cl b/OpenCL/inc_simd.cl index cb391a1f2..37548b44c 100644 --- a/OpenCL/inc_simd.cl +++ b/OpenCL/inc_simd.cl @@ -1043,8 +1043,14 @@ #endif +#ifdef IS_CPU +// CPU seem to have a bit more advanced vector comparison functions (on XOP/AVX2) +#define MATCHES_NONE_VV(a,b) all ((a) != (b)) +#define MATCHES_NONE_VS(a,b) all ((a) != (b)) +#else #define MATCHES_NONE_VV(a,b) !(MATCHES_ONE_VV ((a), (b))) #define MATCHES_NONE_VS(a,b) !(MATCHES_ONE_VS ((a), (b))) +#endif // attack-mode 0