Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 775787 Details for
Bug 728058
dev-libs/jemalloc-5.2.1 ABI_X86=x32 - .../work/jemalloc-5.2.1/include/jemalloc/internal/bit_util.h:91: Error: register type mismatch for `bsr'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix 32/64 bit code selection for ILP32
x32.patch (text/plain), 1.01 KB, created by
Steven Newbury
on 2022-05-01 16:04:21 UTC
(
hide
)
Description:
Fix 32/64 bit code selection for ILP32
Filename:
MIME Type:
Creator:
Steven Newbury
Created:
2022-05-01 16:04:21 UTC
Size:
1.01 KB
patch
obsolete
>--- ./include/jemalloc/internal/bit_util.h.orig 2022-05-01 16:19:32.539680176 +0100 >+++ ./include/jemalloc/internal/bit_util.h 2022-05-01 16:28:33.940788081 +0100 >@@ -82,7 +82,7 @@ > > BIT_UTIL_INLINE uint64_t > pow2_ceil_u64(uint64_t x) { >-#if (defined(__amd64__) || defined(__x86_64__) || defined(JEMALLOC_HAVE_BUILTIN_CLZ)) >+#if ((defined(__amd64__) || defined(__x86_64__) || defined(JEMALLOC_HAVE_BUILTIN_CLZ))) && !defined(__ILP32__) > if(unlikely(x <= 1)) { > return x; > } >@@ -112,12 +112,12 @@ > > BIT_UTIL_INLINE uint32_t > pow2_ceil_u32(uint32_t x) { >-#if ((defined(__i386__) || defined(JEMALLOC_HAVE_BUILTIN_CLZ)) && (!defined(__s390__))) >+#if (((defined(__i386__) || (defined(__amd64__) || defined(__x86_64__)) && defined(__ILP32__)) || defined(JEMALLOC_HAVE_BUILTIN_CLZ)) && (!defined(__s390__))) > if(unlikely(x <= 1)) { > return x; > } > size_t msb_on_index; >-#if (defined(__i386__)) >+#if (defined(__i386__)) || defined(__ILP32__) > asm ("bsr %1, %0" > : "=r"(msb_on_index) // Outputs. > : "r"(x-1) // Inputs.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 728058
:
644502
|
644504
|
644506
| 775787