Support MIPS64 architecture

This commit is contained in:
r-a-sattarov 2020-11-21 21:45:05 +03:00
parent a3aeca213d
commit a0a8a8670f
2 changed files with 3 additions and 1 deletions

View file

@ -66,7 +66,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
set(CPU_OPTIMIZATION "-mmmx -msse -msse2" CACHE STRING "Which CPU specific optimitations should be used beside the compiler's default?")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(powerpc|ppc)64le")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "((powerpc|ppc)64le)|(mips64)")
option(USE_INTRINSICS "Compile using intrinsics (e.g mmx, sse, msse2)" OFF)
else()
option(USE_INTRINSICS "Compile using intrinsics (e.g mmx, sse, msse2)" ON)

View file

@ -119,6 +119,8 @@ If you have questions concerning this license or the applicable additional terms
#define CPUSTRING "aarch64"
#elif defined(__powerpc64__)
#define CPUSTRING "ppc64"
#elif defined(__mips64) || defined(__mips64_)
#define CPUSTRING "mips64"
#else
#error unknown CPU
#endif