Projects
Eulaceura:Mainline:GA
lzop
_service:obs_scm:lzop-Add-sw64-architecture.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:lzop-Add-sw64-architecture.patch of Package lzop
From 9a86631ebf9ef2c2db1b16e64b896a6e322ab3b4 Mon Sep 17 00:00:00 2001 From: wuzx <wuzx1226@qq.com> Date: Fri, 18 Nov 2022 12:15:53 +0800 Subject: [PATCH] Add sw64 architecture Add sw64 architecture in file src/miniacc.h to support sw64 architecture according to alpha architecture. Signed-off-by: wuzx <wuzx1226@qq.com> --- src/miniacc.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/miniacc.h b/src/miniacc.h index 5f44085..e8e7436 100644 --- a/src/miniacc.h +++ b/src/miniacc.h @@ -139,7 +139,7 @@ #ifndef __LONG_MAX__ #if defined(_ILP32) || defined(__ILP32__) #define __LONG_MAX__ 2147483647L -#elif defined(__alpha__) || defined(_LP64) || defined(__MIPS_PSX2__) +#elif defined(__alpha__) || defined(__sw_64__) || defined(_LP64) || defined(__MIPS_PSX2__) #define __LONG_MAX__ 9223372036854775807L #else #define __LONG_MAX__ 2147483647L @@ -891,6 +891,9 @@ #elif defined(__aarch64__) || defined(_M_ARM64) # define ACC_ARCH_ARM64 1 # define ACC_INFO_ARCH "arm64" +#elif defined(__sw_64__) || defined(__sw_64) || defined(_M_SW_64) +# define ACC_ARCH_SW_64 1 +# define ACC_INFO_ARCH "sw_64" #elif defined(__alpha__) || defined(__alpha) || defined(_M_ALPHA) # define ACC_ARCH_ALPHA 1 # define ACC_INFO_ARCH "alpha" @@ -2358,7 +2361,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_LONG == sizeof(long)) # undef ACC_SIZEOF_LONG_LONG #endif #if !defined(ACC_WORDSIZE) -#if (ACC_ARCH_ALPHA) +#if (ACC_ARCH_ALPHA) || (ACC_ARCH_SW_64) # define ACC_WORDSIZE 8 #elif (ACC_ARCH_AMD64) # define ACC_WORDSIZE 8 @@ -2510,7 +2513,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_PTRDIFF_T == sizeof(ptrdiff_t)) # define ACC_ABI_BIG_ENDIAN 1 #elif (ACC_ARCH_IA64) && (ACC_OS_POSIX_LINUX || ACC_OS_WIN64) # define ACC_ABI_LITTLE_ENDIAN 1 -#elif (ACC_ARCH_ALPHA || ACC_ARCH_AMD64 || ACC_ARCH_BLACKFIN || ACC_ARCH_CRIS || ACC_ARCH_I086 || ACC_ARCH_I386 || ACC_ARCH_MSP430 || ACC_ARCH_RISCV) +#elif (ACC_ARCH_ALPHA || ACC_ARCH_SW_64 || ACC_ARCH_AMD64 || ACC_ARCH_BLACKFIN || ACC_ARCH_CRIS || ACC_ARCH_I086 || ACC_ARCH_I386 || ACC_ARCH_MSP430 || ACC_ARCH_RISCV) # define ACC_ABI_LITTLE_ENDIAN 1 #elif (ACC_ARCH_AVR32 || ACC_ARCH_M68K || ACC_ARCH_S390 || ACC_ARCH_SPU) # define ACC_ABI_BIG_ENDIAN 1 @@ -2667,7 +2670,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_PTRDIFF_T == sizeof(ptrdiff_t)) # define __ACC_ASM_CLOBBER_LIST_EMPTY /*empty*/ #endif #endif -#if (ACC_ARCH_ALPHA) +#if (ACC_ARCH_ALPHA) || (ACC_ARCH_SW_64) # define ACC_OPT_AVOID_UINT_INDEX 1 #elif (ACC_ARCH_AMD64) # define ACC_OPT_AVOID_INT_INDEX 1 -- 2.33.0
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
.
浙ICP备2022010568号-2