1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00

Improve CPU cracking speed by replacing vector comparison functions with the more advanced ones available on CPU

This commit is contained in:
Jens Steube 2017-07-16 12:30:09 +02:00
parent 0e7bb074e6
commit 3d9b071e1e

View File

@ -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