diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | minethd.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e87d69d..2667f42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,9 +84,9 @@ endif() # Compile & Link ################################################################################ -# activate sse2 and aes-ni -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -maes") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -maes") +# activate sse2, aes-ni and bmi2 +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -maes -mbmi2") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -maes -mbmi2") # activate static libgcc and libstdc++ linking if(CMAKE_LINK_STATIC) @@ -99,7 +99,7 @@ public: private: typedef void (*cn_hash_fun)(const void*, size_t, void*, cryptonight_ctx*); - typedef void (*cn_hash_fun_dbl)(const void*, size_t, void*, __restrict cryptonight_ctx*, __restrict cryptonight_ctx*); + typedef void (*cn_hash_fun_dbl)(const void*, size_t, void*, cryptonight_ctx* __restrict, cryptonight_ctx* __restrict); minethd(miner_work& pWork, size_t iNo, bool double_work, bool no_prefetch); |