Use SSE2 for 64-bit machines only

This commit is contained in:
Jeffrey Walton 2021-04-17 04:53:33 -04:00
parent 435b4f050b
commit 54ec7e588b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,9 @@
#include "lsh.h"
#include "misc.h"
// Only enable the intrinsics for 64-bit machines
#ifndef CRYPTOPP_DISABLE_ASM
# if defined(__SSE2__) || defined(_M_X64)
# if defined(__SSE2__) && (defined(__amd64__) || defined(_M_X64))
# define CRYPTOPP_LSH256_ASM_AVAILABLE 1
# endif
#endif

View File

@ -10,8 +10,9 @@
#include "lsh.h"
#include "misc.h"
// Only enable the intrinsics for 64-bit machines
#ifndef CRYPTOPP_DISABLE_ASM
# if defined(__SSE2__) || defined(_M_X64)
# if defined(__SSE2__) && (defined(__amd64__) || defined(_M_X64))
# define CRYPTOPP_LSH512_ASM_AVAILABLE 1
# endif
#endif