Support PPC64LE architecture

This commit is contained in:
Trung Le 2020-07-04 01:23:53 +10:00
parent 71bc94fe41
commit 322764a8c2
2 changed files with 7 additions and 1 deletions

View file

@ -66,7 +66,11 @@ 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()
option(USE_INTRINSICS "Compile using intrinsics (e.g mmx, sse, msse2)" ON)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(powerpc|ppc)64le")
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)
endif()
if(FFMPEG AND BINKDEC)
message(FATAL_ERROR "Only one of FFMPEG and BINKDEC (or neither) can be enabled at a time")

View file

@ -113,6 +113,8 @@ If you have questions concerning this license or the applicable additional terms
#define CPUSTRING "e2k"
#elif defined(__aarch64__) || defined(__ARM64__) || defined(_M_ARM64)
#define CPUSTRING "aarch64"
#elif defined(__powerpc64__)
#define CPUSTRING "ppc64"
#else
#error unknown CPU
#endif