mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +00:00
Move files.
This commit is contained in:
parent
ac43cd4f9c
commit
d587eebaf2
70 changed files with 69 additions and 70 deletions
|
@ -55,27 +55,27 @@ set(HEADERS
|
||||||
)
|
)
|
||||||
|
|
||||||
set(HEADERS_CRYPTO
|
set(HEADERS_CRYPTO
|
||||||
src/crypto/asm/CryptonightR_template.h
|
src/crypto/cn/asm/CryptonightR_template.h
|
||||||
src/crypto/c_blake256.h
|
src/crypto/cn/c_blake256.h
|
||||||
src/crypto/c_groestl.h
|
src/crypto/cn/c_groestl.h
|
||||||
src/crypto/c_jh.h
|
src/crypto/cn/c_jh.h
|
||||||
src/crypto/c_skein.h
|
src/crypto/cn/c_skein.h
|
||||||
|
src/crypto/cn/CryptoNight_constants.h
|
||||||
|
src/crypto/cn/CryptoNight_monero.h
|
||||||
|
src/crypto/cn/CryptoNight_test.h
|
||||||
|
src/crypto/cn/CryptoNight.h
|
||||||
|
src/crypto/cn/groestl_tables.h
|
||||||
|
src/crypto/cn/hash.h
|
||||||
|
src/crypto/cn/skein_port.h
|
||||||
|
src/crypto/cn/soft_aes.h
|
||||||
src/crypto/common/portable/mm_malloc.h
|
src/crypto/common/portable/mm_malloc.h
|
||||||
src/crypto/common/VirtualMemory.h
|
src/crypto/common/VirtualMemory.h
|
||||||
src/crypto/CryptoNight_constants.h
|
|
||||||
src/crypto/CryptoNight_monero.h
|
|
||||||
src/crypto/CryptoNight_test.h
|
|
||||||
src/crypto/CryptoNight.h
|
|
||||||
src/crypto/groestl_tables.h
|
|
||||||
src/crypto/hash.h
|
|
||||||
src/crypto/skein_port.h
|
|
||||||
src/crypto/soft_aes.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (XMRIG_ARM)
|
if (XMRIG_ARM)
|
||||||
set(HEADERS_CRYPTO "${HEADERS_CRYPTO}" src/crypto/CryptoNight_arm.h)
|
set(HEADERS_CRYPTO "${HEADERS_CRYPTO}" src/crypto/cn/CryptoNight_arm.h)
|
||||||
else()
|
else()
|
||||||
set(HEADERS_CRYPTO "${HEADERS_CRYPTO}" src/crypto/CryptoNight_x86.h)
|
set(HEADERS_CRYPTO "${HEADERS_CRYPTO}" src/crypto/cn/CryptoNight_x86.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
|
@ -103,10 +103,10 @@ set(SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SOURCES_CRYPTO
|
set(SOURCES_CRYPTO
|
||||||
src/crypto/c_groestl.c
|
src/crypto/cn/c_groestl.c
|
||||||
src/crypto/c_blake256.c
|
src/crypto/cn/c_blake256.c
|
||||||
src/crypto/c_jh.c
|
src/crypto/cn/c_jh.c
|
||||||
src/crypto/c_skein.c
|
src/crypto/cn/c_skein.c
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
|
|
@ -6,13 +6,13 @@ if (WITH_ASM AND NOT XMRIG_ARM AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
|
||||||
if (MSVC_TOOLSET_VERSION GREATER_EQUAL 141)
|
if (MSVC_TOOLSET_VERSION GREATER_EQUAL 141)
|
||||||
set(XMRIG_ASM_FILES
|
set(XMRIG_ASM_FILES
|
||||||
"src/crypto/asm/cn_main_loop.asm"
|
"src/crypto/cn/asm/cn_main_loop.asm"
|
||||||
"src/crypto/asm/CryptonightR_template.asm"
|
"src/crypto/cn/asm/CryptonightR_template.asm"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
set(XMRIG_ASM_FILES
|
set(XMRIG_ASM_FILES
|
||||||
"src/crypto/asm/win64/cn_main_loop.asm"
|
"src/crypto/cn/asm/win64/cn_main_loop.asm"
|
||||||
"src/crypto/asm/win64/CryptonightR_template.asm"
|
"src/crypto/cn/asm/win64/CryptonightR_template.asm"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -22,13 +22,13 @@ if (WITH_ASM AND NOT XMRIG_ARM AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
|
||||||
if (WIN32 AND CMAKE_C_COMPILER_ID MATCHES GNU)
|
if (WIN32 AND CMAKE_C_COMPILER_ID MATCHES GNU)
|
||||||
set(XMRIG_ASM_FILES
|
set(XMRIG_ASM_FILES
|
||||||
"src/crypto/asm/win64/cn_main_loop.S"
|
"src/crypto/cn/asm/win64/cn_main_loop.S"
|
||||||
"src/crypto/asm/CryptonightR_template.S"
|
"src/crypto/cn/asm/CryptonightR_template.S"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
set(XMRIG_ASM_FILES
|
set(XMRIG_ASM_FILES
|
||||||
"src/crypto/asm/cn_main_loop.S"
|
"src/crypto/cn/asm/cn_main_loop.S"
|
||||||
"src/crypto/asm/CryptonightR_template.S"
|
"src/crypto/cn/asm/CryptonightR_template.S"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ if (WITH_ASM AND NOT XMRIG_ARM AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(${XMRIG_ASM_LIBRARY} STATIC ${XMRIG_ASM_FILES})
|
add_library(${XMRIG_ASM_LIBRARY} STATIC ${XMRIG_ASM_FILES})
|
||||||
set(XMRIG_ASM_SOURCES src/crypto/Asm.h src/crypto/Asm.cpp src/crypto/CryptonightR_gen.cpp)
|
set(XMRIG_ASM_SOURCES src/crypto/cn/Asm.h src/crypto/cn/Asm.cpp src/crypto/cn/r/CryptonightR_gen.cpp)
|
||||||
set_property(TARGET ${XMRIG_ASM_LIBRARY} PROPERTY LINKER_LANGUAGE C)
|
set_property(TARGET ${XMRIG_ASM_LIBRARY} PROPERTY LINKER_LANGUAGE C)
|
||||||
else()
|
else()
|
||||||
set(XMRIG_ASM_SOURCES "")
|
set(XMRIG_ASM_SOURCES "")
|
||||||
|
|
|
@ -4,16 +4,16 @@ if (WITH_CN_GPU AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(CN_GPU_SOURCES src/crypto/cn_gpu_arm.cpp)
|
set(CN_GPU_SOURCES src/crypto/cn_gpu_arm.cpp)
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
|
if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
|
||||||
set_source_files_properties(src/crypto/cn_gpu_arm.cpp PROPERTIES COMPILE_FLAGS "-O3")
|
set_source_files_properties(src/crypto/cn/gpu/cn_gpu_arm.cpp PROPERTIES COMPILE_FLAGS "-O3")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(CN_GPU_SOURCES src/crypto/cn_gpu_avx.cpp src/crypto/cn_gpu_ssse3.cpp)
|
set(CN_GPU_SOURCES src/crypto/cn/gpu/cn_gpu_avx.cpp src/crypto/cn/gpu/cn_gpu_ssse3.cpp)
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
|
if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
|
||||||
set_source_files_properties(src/crypto/cn_gpu_avx.cpp PROPERTIES COMPILE_FLAGS "-O3 -mavx2")
|
set_source_files_properties(src/crypto/cn/gpu/cn_gpu_avx.cpp PROPERTIES COMPILE_FLAGS "-O3 -mavx2")
|
||||||
set_source_files_properties(src/crypto/cn_gpu_ssse3.cpp PROPERTIES COMPILE_FLAGS "-O3")
|
set_source_files_properties(src/crypto/cn/gpu/cn_gpu_ssse3.cpp PROPERTIES COMPILE_FLAGS "-O3")
|
||||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
||||||
set_source_files_properties(src/crypto/cn_gpu_avx.cpp PROPERTIES COMPILE_FLAGS "/arch:AVX")
|
set_source_files_properties(src/crypto/cn/gpu/cn_gpu_avx.cpp PROPERTIES COMPILE_FLAGS "/arch:AVX")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "common/Platform.h"
|
#include "common/Platform.h"
|
||||||
#include "core/config/Config.h"
|
#include "core/config/Config.h"
|
||||||
#include "core/Controller.h"
|
#include "core/Controller.h"
|
||||||
#include "crypto/CryptoNight.h"
|
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
#include "net/Network.h"
|
#include "net/Network.h"
|
||||||
#include "Summary.h"
|
#include "Summary.h"
|
||||||
|
|
|
@ -27,10 +27,10 @@
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
|
||||||
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
|
#include "crypto/cn/CryptoNight.h"
|
||||||
#include "crypto/common/portable/mm_malloc.h"
|
#include "crypto/common/portable/mm_malloc.h"
|
||||||
#include "crypto/common/VirtualMemory.h"
|
#include "crypto/common/VirtualMemory.h"
|
||||||
#include "crypto/CryptoNight_constants.h"
|
|
||||||
#include "crypto/CryptoNight.h"
|
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "common/xmrig.h"
|
#include "common/xmrig.h"
|
||||||
#include "crypto/common/portable/mm_malloc.h"
|
#include "crypto/common/portable/mm_malloc.h"
|
||||||
#include "crypto/common/VirtualMemory.h"
|
#include "crypto/common/VirtualMemory.h"
|
||||||
#include "crypto/CryptoNight.h"
|
#include "crypto/cn/CryptoNight.h"
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
#include "common/xmrig.h"
|
#include "common/xmrig.h"
|
||||||
#include "crypto/common/portable/mm_malloc.h"
|
#include "crypto/common/portable/mm_malloc.h"
|
||||||
#include "crypto/common/VirtualMemory.h"
|
#include "crypto/common/VirtualMemory.h"
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
#include "crypto/CryptoNight.h"
|
#include "crypto/cn/CryptoNight.h"
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include "common/cpu/Cpu.h"
|
#include "common/cpu/Cpu.h"
|
||||||
#include "core/config/Config.h"
|
#include "core/config/Config.h"
|
||||||
#include "core/Controller.h"
|
#include "core/Controller.h"
|
||||||
#include "crypto/Asm.h"
|
#include "crypto/cn/Asm.h"
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
#include "Summary.h"
|
#include "Summary.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
#include "base/kernel/interfaces/IJsonReader.h"
|
#include "base/kernel/interfaces/IJsonReader.h"
|
||||||
#include "common/cpu/Cpu.h"
|
#include "common/cpu/Cpu.h"
|
||||||
#include "core/config/Config.h"
|
#include "core/config/Config.h"
|
||||||
#include "crypto/Asm.h"
|
#include "crypto/cn/Asm.h"
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
#include "rapidjson/document.h"
|
#include "rapidjson/document.h"
|
||||||
#include "rapidjson/filewritestream.h"
|
#include "rapidjson/filewritestream.h"
|
||||||
#include "rapidjson/prettywriter.h"
|
#include "rapidjson/prettywriter.h"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "crypto/Asm.h"
|
#include "crypto/cn/Asm.h"
|
||||||
#include "rapidjson/document.h"
|
#include "rapidjson/document.h"
|
||||||
|
|
||||||
|
|
|
@ -30,18 +30,18 @@
|
||||||
|
|
||||||
#include "common/crypto/keccak.h"
|
#include "common/crypto/keccak.h"
|
||||||
#include "crypto/common/portable/mm_malloc.h"
|
#include "crypto/common/portable/mm_malloc.h"
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
#include "crypto/CryptoNight_monero.h"
|
#include "crypto/cn/CryptoNight_monero.h"
|
||||||
#include "crypto/CryptoNight.h"
|
#include "crypto/cn/CryptoNight.h"
|
||||||
#include "crypto/soft_aes.h"
|
#include "crypto/cn/soft_aes.h"
|
||||||
|
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "crypto/c_groestl.h"
|
#include "crypto/cn/c_groestl.h"
|
||||||
#include "crypto/c_blake256.h"
|
#include "crypto/cn/c_blake256.h"
|
||||||
#include "crypto/c_jh.h"
|
#include "crypto/cn/c_jh.h"
|
||||||
#include "crypto/c_skein.h"
|
#include "crypto/cn/c_skein.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common/xmrig.h"
|
#include "common/xmrig.h"
|
||||||
#include "variant4_random_math.h"
|
#include "crypto/cn/r/variant4_random_math.h"
|
||||||
|
|
||||||
#define VARIANT4_RANDOM_MATH_INIT(part) \
|
#define VARIANT4_RANDOM_MATH_INIT(part) \
|
||||||
uint32_t r##part[9]; \
|
uint32_t r##part[9]; \
|
|
@ -37,18 +37,18 @@
|
||||||
|
|
||||||
#include "common/cpu/Cpu.h"
|
#include "common/cpu/Cpu.h"
|
||||||
#include "common/crypto/keccak.h"
|
#include "common/crypto/keccak.h"
|
||||||
#include "crypto/CryptoNight.h"
|
#include "crypto/cn/CryptoNight.h"
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
#include "crypto/CryptoNight_monero.h"
|
#include "crypto/cn/CryptoNight_monero.h"
|
||||||
#include "crypto/soft_aes.h"
|
#include "crypto/cn/soft_aes.h"
|
||||||
|
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "crypto/c_groestl.h"
|
#include "crypto/cn/c_groestl.h"
|
||||||
#include "crypto/c_blake256.h"
|
#include "crypto/cn/c_blake256.h"
|
||||||
#include "crypto/c_jh.h"
|
#include "crypto/cn/c_jh.h"
|
||||||
#include "crypto/c_skein.h"
|
#include "crypto/cn/c_skein.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# include <x86intrin.h>
|
# include <x86intrin.h>
|
|
@ -22,7 +22,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# include <x86intrin.h>
|
# include <x86intrin.h>
|
|
@ -24,11 +24,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "crypto/CryptoNight_monero.h"
|
#include "crypto/cn/CryptoNight_monero.h"
|
||||||
|
|
||||||
typedef void(*void_func)();
|
typedef void(*void_func)();
|
||||||
|
|
||||||
#include "crypto/asm/CryptonightR_template.h"
|
#include "crypto/cn/asm/CryptonightR_template.h"
|
||||||
#include "crypto/common/VirtualMemory.h"
|
#include "crypto/common/VirtualMemory.h"
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "c_blake256.h"
|
#include "crypto/cn/c_blake256.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
enum V4_Settings
|
enum V4_Settings
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#include "base/io/log/Log.h"
|
#include "base/io/log/Log.h"
|
||||||
#include "common/cpu/Cpu.h"
|
#include "common/cpu/Cpu.h"
|
||||||
#include "crypto/Asm.h"
|
#include "crypto/cn/Asm.h"
|
||||||
#include "crypto/common/VirtualMemory.h"
|
#include "crypto/common/VirtualMemory.h"
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
#include "rapidjson/document.h"
|
#include "rapidjson/document.h"
|
||||||
|
@ -35,9 +35,9 @@
|
||||||
|
|
||||||
|
|
||||||
#if defined(XMRIG_ARM)
|
#if defined(XMRIG_ARM)
|
||||||
# include "crypto/CryptoNight_arm.h"
|
# include "crypto/cn/CryptoNight_arm.h"
|
||||||
#else
|
#else
|
||||||
# include "crypto/CryptoNight_x86.h"
|
# include "crypto/cn/CryptoNight_x86.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
|
||||||
#include "crypto/CryptoNight_test.h"
|
#include "crypto/cn/CryptoNight_test.h"
|
||||||
#include "workers/CpuThread.h"
|
#include "workers/CpuThread.h"
|
||||||
#include "workers/MultiWorker.h"
|
#include "workers/MultiWorker.h"
|
||||||
#include "workers/Workers.h"
|
#include "workers/Workers.h"
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "base/tools/Handle.h"
|
#include "base/tools/Handle.h"
|
||||||
#include "core/config/Config.h"
|
#include "core/config/Config.h"
|
||||||
#include "core/Controller.h"
|
#include "core/Controller.h"
|
||||||
#include "crypto/CryptoNight_constants.h"
|
#include "crypto/cn/CryptoNight_constants.h"
|
||||||
#include "interfaces/IJobResultListener.h"
|
#include "interfaces/IJobResultListener.h"
|
||||||
#include "interfaces/IThread.h"
|
#include "interfaces/IThread.h"
|
||||||
#include "Mem.h"
|
#include "Mem.h"
|
||||||
|
|
Loading…
Reference in a new issue