]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Allow to use assembly version of blake2b on x86 cpu
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 6 Apr 2016 15:02:32 +0000 (16:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 6 Apr 2016 15:02:32 +0000 (16:02 +0100)
src/libcryptobox/blake2/blake2.c

index 7d3b281f4fa2088e17853afb2ab6b06cf8d72f64..fd99a0f93339b2cfe038426d4b0a67681f6e4791 100644 (file)
@@ -57,7 +57,7 @@ BLAKE2B_DECLARE(avx)
 
 #if defined(CMAKE_ARCH_x86_64) || defined(CMAKE_ARCH_i386)
 BLAKE2B_DECLARE(x86)
-#define BLAKE2B_X86 BLAKE2B_IMPL(0, "x86", x86)
+#define BLAKE2B_X86 BLAKE2B_IMPL(CPUID_SSE2, "x86", x86)
 #endif
 
 /* the "always runs" version */