XMRig
3 years ago
No known key found for this signature in database
GPG Key ID: 446A53638BE94409
2 changed files with
5 additions and
7 deletions
-
cmake/astrobwt.cmake
-
src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c
|
|
@ -24,6 +24,11 @@ if (WITH_ASTROBWT) |
|
|
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8) |
|
|
|
add_definitions(/DASTROBWT_AVX2) |
|
|
|
list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c) |
|
|
|
|
|
|
|
if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang) |
|
|
|
set_source_files_properties(src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c PROPERTIES COMPILE_FLAGS -mavx2) |
|
|
|
endif() |
|
|
|
|
|
|
|
if (CMAKE_C_COMPILER_ID MATCHES MSVC) |
|
|
|
enable_language(ASM_MASM) |
|
|
|
list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/sha3_256_avx2.asm) |
|
|
|
|
|
@ -21,13 +21,6 @@ |
|
|
|
#include <stdlib.h> |
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
#ifdef __GNUC__ |
|
|
|
#pragma GCC target("sse2") |
|
|
|
#pragma GCC target("ssse3") |
|
|
|
#pragma GCC target("sse4.1") |
|
|
|
#pragma GCC target("avx2") |
|
|
|
#endif |
|
|
|
|
|
|
|
#include <emmintrin.h> |
|
|
|
#include <immintrin.h> |
|
|
|
#include <smmintrin.h> |
|
|
|