Projects
Essentials
x265
arm.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File arm.patch of Package x265 (Revision 6)
Currently displaying revision
6
,
Show latest
--- source/CMakeLists.txt.orig 2014-10-04 17:02:08.482815493 +0200 +++ source/CMakeLists.txt 2014-10-04 17:11:52.536865262 +0200 @@ -46,10 +46,18 @@ set(X64 1) add_definitions(-DX86_64=1) endif() -elseif(${SYSPROC} STREQUAL "armv6l") - message(STATUS "Detected ARM target processor") - set(ARM 1) - add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1) +elseif(${SYSPROC} MATCHES "armv5.*") + message(STATUS "Detected ARMV5 system processor") + set(ARMV5 1) + add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=0 -DHAVE_NEON=0) + elseif(${SYSPROC} STREQUAL "armv6l") + message(STATUS "Detected ARMV6 system processor") + set(ARMV6 1) + add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1 -DHAVE_NEON=0) +elseif(${SYSPROC} STREQUAL "armv7l") + message(STATUS "Detected ARMV7 system processor") + set(ARMV7 1) + add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1 -DHAVE_NEON=0) else() message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}` is unknown") message(STATUS "Please add this value near ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}") @@ -127,8 +135,8 @@ if(X86 AND NOT X64) add_definitions(-march=i686) endif() - if(ARM) - add_definitions(-march=armv6 -mfloat-abi=hard -mfpu=vfp) + if(ARMV7) + add_definitions(-fPIC) endif() check_cxx_compiler_flag(-Wno-narrowing CC_HAS_NO_NARROWING) check_cxx_compiler_flag(-ffast-math CC_HAS_FAST_MATH) --- source/common/cpu.cpp.orig 2014-10-04 17:13:58.507875996 +0200 +++ source/common/cpu.cpp 2014-10-04 17:21:11.170912864 +0200 @@ -37,7 +37,7 @@ #include <machine/cpu.h> #endif -#if X265_ARCH_ARM && !defined(HAVE_NEON) +#if X265_ARCH_ARM && (!defined(HAVE_NEON) || HAVE_NEON==0) #include <signal.h> #include <setjmp.h> static sigjmp_buf jmpbuf; @@ -340,7 +340,6 @@ } canjump = 1; - x265_cpu_neon_test(); canjump = 0; signal(SIGILL, oldsig); #endif // if !HAVE_NEON @@ -356,7 +355,7 @@ // which may result in incorrect detection and the counters stuck enabled. // right now Apple does not seem to support performance counters for this test #ifndef __MACH__ - flags |= x265_cpu_fast_neon_mrc_test() ? X265_CPU_FAST_NEON_MRC : 0; + //flags |= x265_cpu_fast_neon_mrc_test() ? X265_CPU_FAST_NEON_MRC : 0; #endif // TODO: write dual issue test? currently it's A8 (dual issue) vs. A9 (fast mrc) #endif // if HAVE_ARMV6
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.